mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 16:08:40 +00:00
Fix #755 - Can't set listen_ports through console UI
This commit is contained in:
parent
14746bf94d
commit
b9ff47e10f
1 changed files with 4 additions and 1 deletions
|
@ -62,7 +62,10 @@ def atom(next, token):
|
||||||
return tuple(out)
|
return tuple(out)
|
||||||
elif token[0] is tokenize.NUMBER or token[1] == "-":
|
elif token[0] is tokenize.NUMBER or token[1] == "-":
|
||||||
try:
|
try:
|
||||||
return int(token[-1], 0)
|
if token[1] == "-":
|
||||||
|
return int(token[-1], 0)
|
||||||
|
else:
|
||||||
|
return int(token[1], 0)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return float(token[-1])
|
return float(token[-1])
|
||||||
elif token[1].lower() == 'true':
|
elif token[1].lower() == 'true':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue