Package: python-mutagen Version: 0.9-1 Severity: normal Tags: patch As per $SUBJECT; traceback is as follows:
Traceback (most recent call last): File "/usr/bin/mid3v2", line 197, in ? main(sys.argv) File "/usr/bin/mid3v2", line 183, in main elif options.action in [None, 'list']: list_tags(args) File "/usr/bin/mid3v2", line 100, in list_tags else: print id3.pprint().encode(enc, "replace") File "/usr/lib/python2.3/site-packages/mutagen/id3.py", line 157, in pprint return "\n".join(map(Frame.pprint, self.values())) File "/usr/lib/python2.3/site-packages/mutagen/id3.py", line 788, in pprint return "%s=%s" % (type(self).__name__, self._pprint()) File "/usr/lib/python2.3/site-packages/mutagen/id3.py", line 1292, in _pprint else: return "%s (%d bytes)" % len(self.data) TypeError: not enough arguments for format string I believe the attached patch implements the correct behaviour. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.12-elvardein Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages python-mutagen depends on: ii python 2.3.5-5 An interactive high-level object-o python-mutagen recommends no packages. -- no debconf information
--- /usr/lib/python2.3/site-packages/mutagen/id3.py 2006-02-21 21:44:17.000000000 +0200 +++ id3.py 2006-03-15 15:27:37.000000000 +0200 @@ -1289,7 +1289,7 @@ def _pprint(self): isascii = ord(max(self.data)) < 128 if isascii: return "%s=%s" % (self.owner, self.data) - else: return "%s (%d bytes)" % len(self.data) + else: return "%s (%d bytes)" % (self.owner, len(self.data)) class SIGN(Frame): "Signature frame"