Explorar el Código

Fix negative ints

master
JustAnotherArchivist hace 1 año
padre
commit
5a8bab3a01
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      torrent-tiny

+ 1
- 1
torrent-tiny Ver fichero

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


Cargando…
Cancelar
Guardar