Commits

Victor Stinner committed e84a1ae

parser: torrent parser handles empty strings

Comments (0)

Files changed (2)

hachoir-parser/ChangeLog

 hachoir-parser 1.3.5
 ====================
 
-XXX
+ * torrent parser handles empty strings
 
 hachoir-parser 1.3.4 (2010-07-26)
 =================================

hachoir-parser/hachoir_parser/misc/torrent.py

 
 # Map first chunk byte => type
 TAGS = {'d': Dictionary, 'i': Integer, 'l': List}
-for index in xrange(1, 9+1):
+for index in xrange(0, 9+1):
     TAGS[str(index)] = TorrentString
 
 # Create an entry