diff options
author | 2014-04-10 13:37:02 +0200 | |
---|---|---|
committer | 2014-06-28 02:51:58 +0200 | |
commit | 2ff2fb0495febe11d5015d2308d67e1d8048e597 (patch) | |
tree | 2ae9d1da4a701fc6b3945ccc32dfbbf102b9c85a /module/remote/thriftbackend/ThriftTest.py | |
parent | Localization badge (diff) | |
download | pyload-2ff2fb0495febe11d5015d2308d67e1d8048e597.tar.xz |
Some code cosmetics about commas, spaces and quotes
Merges #577
Diffstat (limited to 'module/remote/thriftbackend/ThriftTest.py')
-rw-r--r-- | module/remote/thriftbackend/ThriftTest.py | 8 |
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 |