parent
83a317c10b
commit
2cbaacf0d0
@ -49,12 +49,12 @@ def bdecode(f, char=None):
|
|||||||
key = bdecode(f, char)
|
key = bdecode(f, char)
|
||||||
d[key] = bdecode(f)
|
d[key] = bdecode(f)
|
||||||
elif char == 'i':
|
elif char == 'i':
|
||||||
i = 0
|
i = ''
|
||||||
while True:
|
while True:
|
||||||
char = f.read(1)
|
char = f.read(1)
|
||||||
if char == 'e':
|
if char == 'e':
|
||||||
return i
|
return int(i)
|
||||||
i = 10 * i + int(char)
|
i += char
|
||||||
elif char.isdigit():
|
elif char.isdigit():
|
||||||
i = int(char)
|
i = int(char)
|
||||||
while True:
|
while True:
|
||||||
|
Loading…
Reference in New Issue
Block a user