[tor-commits] [pytorctl/master] add case for long
mikeperry at torproject.org
mikeperry at torproject.org
Fri Jun 24 19:30:02 UTC 2011
commit ef0b770e9fa3ddb63ec52dfa4796c7dff27e8709
Author: aagbsn <aagbsn at extc.org>
Date: Sat Jun 18 16:36:24 2011 -0700
add case for long
---
SQLSupport.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/SQLSupport.py b/SQLSupport.py
index e8feed9..8eefa20 100644
--- a/SQLSupport.py
+++ b/SQLSupport.py
@@ -568,6 +568,7 @@ class RouterStats(Entity):
def cvt(a,b,c=1):
if type(a) == float: return round(a/c,b)
elif type(a) == int: return a
+ elif type(a) == long: return a
elif type(a) == type(None): return "None"
else: return type(a)
More information about the tor-commits
mailing list