From 304a42b914cde43a31a935181b0f952c726eee54 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 12 May 2015 14:03:56 +0200 Subject: Other import fixes (2) --- pyload/remote/thriftbackend/ThriftTest.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'pyload/remote/thriftbackend') 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/" % ( "", -- cgit v1.2.3