summaryrefslogtreecommitdiff
path: root/addons/pad/py_etherpad/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/pad/py_etherpad/__init__.py')
-rw-r--r--addons/pad/py_etherpad/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/pad/py_etherpad/__init__.py b/addons/pad/py_etherpad/__init__.py
index 0db607fe16f..fce51d36890 100644
--- a/addons/pad/py_etherpad/__init__.py
+++ b/addons/pad/py_etherpad/__init__.py
@@ -1,7 +1,7 @@
"""Module to talk to EtherpadLite API."""
import json
-import urllib
+import werkzeug.urls
import urllib2
@@ -32,7 +32,7 @@ class EtherpadLiteClient:
params = arguments or {}
params.update({'apikey': self.apiKey})
- data = urllib.urlencode(params, True)
+ data = werkzeug.url_encode(params, True)
try:
opener = urllib2.build_opener()