Browse Source

Fix up urllib import.

Bentley James Oakes 3 years ago
parent
commit
46071f2745
1 changed files with 3 additions and 3 deletions
  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