Parcourir la source

Fix negative ints

master
JustAnotherArchivist il y a 1 an
Parent
révision
5a8bab3a01
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      torrent-tiny

+ 1
- 1
torrent-tiny Voir le fichier

@@ -57,7 +57,7 @@ def read_int(fp, c = b'', end = b'e'):
c = fp.read(1)
if c == end:
break
elif c in b'0123456789':
elif c in b'-0123456789':
i += c
else:
raise ValueError


Chargement…
Annuler
Enregistrer