From 000426c9d890ba2a71625a7454f9c573f10b9bae Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 12 May 2015 02:17:30 +0200 Subject: 'from time' -> 'import time' and so on... --- pyload/remote/thriftbackend/ThriftTest.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'pyload/remote/thriftbackend/ThriftTest.py') diff --git a/pyload/remote/thriftbackend/ThriftTest.py b/pyload/remote/thriftbackend/ThriftTest.py index c95e060b8..d8adf476e 100644 --- a/pyload/remote/thriftbackend/ThriftTest.py +++ b/pyload/remote/thriftbackend/ThriftTest.py @@ -3,11 +3,7 @@ import os import platform import sys - -if "64" in platform.machine(): - sys.path.append(os.path.join(pypath, "lib64")) -sys.path.append(os.path.join(pypath, "lib", "Python", "Lib")) - +import time from pyload.remote.thriftbackend.thriftgen.pyload import Pyload from pyload.remote.thriftbackend.thriftgen.pyload.ttypes import * @@ -18,15 +14,13 @@ from thrift.transport import TTransport from Protocol import Protocol -from time import time - import xmlrpclib def bench(f, *args, **kwargs): - s = time() + s = time.time() ret = [f(*args, **kwargs) for _i in xrange(0, 100)] - e = time() + e = time.time() try: print "%s: %f s" % (f._Method__name, e-s) except Exception: -- cgit v1.2.3