diff --git a/torrent-tiny b/torrent-tiny index b707269..04b45b7 100755 --- a/torrent-tiny +++ b/torrent-tiny @@ -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