summaryrefslogtreecommitdiffstats
path: root/pyload/remote/thriftbackend/thriftgen/pyload/Pyload-remote
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/remote/thriftbackend/thriftgen/pyload/Pyload-remote')
-rw-r--r--pyload/remote/thriftbackend/thriftgen/pyload/Pyload-remote5
1 files changed, 3 insertions, 2 deletions
diff --git a/pyload/remote/thriftbackend/thriftgen/pyload/Pyload-remote b/pyload/remote/thriftbackend/thriftgen/pyload/Pyload-remote
index ddc1dd451..beab520e2 100644
--- a/pyload/remote/thriftbackend/thriftgen/pyload/Pyload-remote
+++ b/pyload/remote/thriftbackend/thriftgen/pyload/Pyload-remote
@@ -8,7 +8,8 @@
import sys
import pprint
-from urlparse import urlparse
+import urlparse
+
from thrift.transport import TTransport
from thrift.transport import TSocket
from thrift.transport import THttpClient
@@ -111,7 +112,7 @@ if sys.argv[argi] == '-h':
argi += 2
if sys.argv[argi] == '-u':
- url = urlparse(sys.argv[argi+1])
+ url = urlparse.urlparse(sys.argv[argi+1])
parts = url[1].split(':')
host = parts[0]
if len(parts) > 1: