Module: deluge
Branch: 1.3-stable
Commit: c379b6c3b2c935779dca672603b71de4c6335e87

Author: Calum Lind <[email protected]>
Date:   Sat Jan 29 07:07:46 2011 +0000

Fix #755 - Can't set listen_ports through console UI

---

 deluge/ui/console/commands/config.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/deluge/ui/console/commands/config.py 
b/deluge/ui/console/commands/config.py
index 3f70013..37194d2 100644
--- a/deluge/ui/console/commands/config.py
+++ b/deluge/ui/console/commands/config.py
@@ -60,7 +60,10 @@ def atom(next, token):
         return tuple(out)
     elif token[0] is tokenize.NUMBER or token[1] == "-":
         try:
-            return int(token[-1], 0)
+            if token[1] == "-":
+                return int(token[-1], 0)
+            else:
+                return int(token[1], 0)
         except ValueError:
             return float(token[-1])
     elif token[1].lower() == 'true':

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to