summaryrefslogtreecommitdiff
path: root/addons/pad/py_etherpad
diff options
context:
space:
mode:
authorDenis Ledoux <dle@openerp.com>2014-01-29 13:13:16 +0100
committerDenis Ledoux <dle@openerp.com>2014-01-29 13:13:16 +0100
commit0306adbfe3e8a342d2fff93f9cf2895992ce0896 (patch)
treebf968d9cebce0af986eb3ae45f246d43c110df2e /addons/pad/py_etherpad
parent911d95eabd7b6376b3608f48478e44441a03794e (diff)
[FIX] *: using werkzeug.url_encode instead of urllib.urlencode because urliblib.encode does not accept unicode
bzr revid: dle@openerp.com-20140129121316-b5f5e4r6fz9l80kq
Diffstat (limited to 'addons/pad/py_etherpad')
-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()