Package: python-xdg Version: 0.17-0.1 Severity: normal Whereas the use of __init__() and parse(filename) are OK for both DesktopEntry and IniFile, both have problems with __init__(filename):
* DesktopEntry does not properly detect non-existent file: i=DesktopEntry("plugins/Games/Chess.py") => UnboundLocalError: local variable 'type' referenced before assignment whereas: i=DesktopEntry() i.parse("plugins/Games/Chess.py") => ParsingError: ParsingError in file 'plugins/Games/Chess.py', File not found * IniFile.__init__ calls parse() with wrong number of arguments: i=IniFile(filename='plugins/Games/Chess.py') => TypeError: parse() takes exactly 3 arguments (2 given) What is this "headers" argument that IniFile.parse() requires, anyway ? Some documentation is missing. -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (990, 'testing'), (500, 'oldstable'), (500, 'unstable'), (101, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.28.10-smp-smp-00002-g0fee61b (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=french (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/bash Versions of packages python-xdg depends on: ii python 2.5.4-2 An interactive high-level object-o ii python-support 1.0.4 automated rebuilding support for P python-xdg recommends no packages. python-xdg suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org