* John O'Hagan <johnmoha...@gmail.com>, 2012-05-09, 16:41:
Traceback (most recent call last):
 File "/usr/bin/songwrite", line 134, in <module>
   import main
 File "/usr/bin/../share/songwrite/main.py", line 21, in <module>
   import globdef, song, player, ui
 File "/usr/bin/../share/songwrite/song.py", line 1352, in <module>
   END_TRACK = struct.pack(">bbb", 0xFF, 0x2F, 0x00)
struct.error: byte format requires -128 <= number <= 127

Right, it should be "B" (unsigned byte, 0..255) not "b" (signed byte, -128..+127). Python 2.6 tolerated overflows in struct.pack (with deprecation warnings), but Python 2.7 throws an exception instead.

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-qa-packages-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120509140747.ga8...@jwilk.net

Reply via email to