summaryrefslogtreecommitdiffstats
path: root/pyload/remote/thriftbackend/ThriftTest.py
diff options
context:
space:
mode:
authorGravatar ardi69 <armin@diedering.de> 2015-04-18 14:08:18 +0200
committerGravatar ardi69 <armin@diedering.de> 2015-04-18 14:08:18 +0200
commit6e8f84e1dc06cff6fa9387559992f555182c1774 (patch)
tree476600f9896fae029880e4049eb4c5e6021b202d /pyload/remote/thriftbackend/ThriftTest.py
parentfix: config cast (diff)
parentSpare code cosmetics (5) (diff)
downloadpyload-6e8f84e1dc06cff6fa9387559992f555182c1774.tar.xz
Merge pull request #3 from vuolter/0.4.10
merge vuolter HEAD
Diffstat (limited to 'pyload/remote/thriftbackend/ThriftTest.py')
-rw-r--r--pyload/remote/thriftbackend/ThriftTest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyload/remote/thriftbackend/ThriftTest.py b/pyload/remote/thriftbackend/ThriftTest.py
index fb8dd03c9..0c5ea4783 100644
--- a/pyload/remote/thriftbackend/ThriftTest.py
+++ b/pyload/remote/thriftbackend/ThriftTest.py
@@ -22,9 +22,10 @@ from time import time
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)