Sfoglia il codice sorgente

Fix negative ints

master
JustAnotherArchivist 1 anno fa
parent
commit
5a8bab3a01
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      torrent-tiny

+ 1
- 1
torrent-tiny Vedi File

@@ -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


Caricamento…
Annulla
Salva