Ver a proveniência

Fix negative ints

master
JustAnotherArchivist há 1 ano
ascendente
cometimento
5a8bab3a01
1 ficheiros alterados com 1 adições e 1 eliminações
  1. +1
    -1
      torrent-tiny

+ 1
- 1
torrent-tiny Ver ficheiro

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


Carregando…
Cancelar
Guardar