summaryrefslogtreecommitdiffstats
path: root/module/remote/thriftbackend/ThriftTest.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/remote/thriftbackend/ThriftTest.py')
-rw-r--r--module/remote/thriftbackend/ThriftTest.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/remote/thriftbackend/ThriftTest.py b/module/remote/thriftbackend/ThriftTest.py
index 69ac6a745..a67d86b8d 100644
--- a/module/remote/thriftbackend/ThriftTest.py
+++ b/module/remote/thriftbackend/ThriftTest.py
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
import sys
-from os.path import join,abspath,dirname
+from os.path import join, abspath, dirname
-path = join((abspath(dirname(__file__))), "..","..", "lib")
+path = join((abspath(dirname(__file__))), "..", "..", "lib")
sys.path.append(path)
from thriftgen.pyload import Pyload
@@ -22,11 +22,11 @@ import xmlrpclib
def bench(f, *args, **kwargs):
s = time()
- ret = [f(*args, **kwargs) for i in range(0,100)]
+ ret = [f(*args, **kwargs) for i in range(0, 100)]
e = time()
try:
print "%s: %f s" % (f._Method__name, e-s)
- except :
+ except:
print "%s: %f s" % (f.__name__, e-s)
return ret