Explorar o código

Fix up urllib import.

Bentley James Oakes %!s(int64=7) %!d(string=hai) anos
pai
achega
46071f2745
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      interface/CBD/main.py

+ 3 - 3
interface/CBD/main.py

@@ -19,9 +19,9 @@ if sys.version_info[0] < 3:
     from urllib2 import Request as Request
     from urllib import urlencode as urlencode
 else:
-    from urllib.request.urlopen import urlopen as urlopen
-    from urllib.request.Request import Request as Request
-    from urllib.parse.urlencode import urlencode as urlencode
+    from urllib.request import urlopen as urlopen
+    from urllib.request import Request as Request
+    from urllib.parse import urlencode as urlencode
     
 import json