[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [pytorctl/master] add case for long
commit ef0b770e9fa3ddb63ec52dfa4796c7dff27e8709
Author: aagbsn <aagbsn@xxxxxxxx>
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)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits