summaryrefslogtreecommitdiffstats
path: root/pyload/remote/thriftbackend
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 14:03:56 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 14:03:56 +0200
commit304a42b914cde43a31a935181b0f952c726eee54 (patch)
tree104a496ed690c187a479cde5b829f4e76b21c1cd /pyload/remote/thriftbackend
parentOther import fixes (diff)
downloadpyload-304a42b914cde43a31a935181b0f952c726eee54.tar.xz
Other import fixes (2)
Diffstat (limited to 'pyload/remote/thriftbackend')
-rw-r--r--pyload/remote/thriftbackend/ThriftTest.py7
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/" % (
"",