diff options
Diffstat (limited to 'pyload/remote/thriftbackend/ThriftTest.py')
-rw-r--r-- | pyload/remote/thriftbackend/ThriftTest.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pyload/remote/thriftbackend/ThriftTest.py b/pyload/remote/thriftbackend/ThriftTest.py index d8adf476e..3ea67682b 100644 --- a/pyload/remote/thriftbackend/ThriftTest.py +++ b/pyload/remote/thriftbackend/ThriftTest.py @@ -1,9 +1,11 @@ # -*- coding: utf-8 -*- +import getpass import os import platform import sys import time +import xmlrpclib from pyload.remote.thriftbackend.thriftgen.pyload import Pyload from pyload.remote.thriftbackend.thriftgen.pyload.ttypes import * @@ -14,8 +16,6 @@ from thrift.transport import TTransport from Protocol import Protocol -import xmlrpclib - def bench(f, *args, **kwargs): s = time.time() @@ -27,9 +27,8 @@ def bench(f, *args, **kwargs): print "%s: %f s" % (f.__name__, e-s) return ret -from getpass import getpass user = raw_input("user ") -passwd = getpass("password ") +passwd = getpass.getpass("password ") server_url = "http%s://%s:%s@%s:%s/" % ( "", |