Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117754853
D3878.1775201129.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
728 B
Referenced Files
None
Subscribers
None
D3878.1775201129.diff
View Options
diff --git a/pykolab/wap_client/__init__.py b/pykolab/wap_client/__init__.py
--- a/pykolab/wap_client/__init__.py
+++ b/pykolab/wap_client/__init__.py
@@ -1,15 +1,18 @@
import json
+import sys
try:
import httplib
except ImportError:
import http.client as httplib
-import urllib
-import sys
try:
from urlparse import urlparse
except ImportError:
from urllib.parse import urlparse
+try:
+ from urllib import urlencode
+except ImportError:
+ from urllib.parse import urlencode
import pykolab
@@ -447,7 +450,7 @@
conn.set_debuglevel(9)
if get is not None:
- _get = "?%s" % (urllib.urlencode(get))
+ _get = "?%s" % (urlencode(get))
else:
_get = ""
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 3, 7:25 AM (18 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18823005
Default Alt Text
D3878.1775201129.diff (728 B)
Attached To
Mode
D3878: [Python 3] urllib.urlencode / httplib module change
Attached
Detach File
Event Timeline