[web/formwidgets] fix for py3k
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 05 Oct 2015 16:52:26 +0200
changeset 10771 a688ef1a12eb
parent 10770 c3ed65f23181
child 10772 2ff5afce3216
[web/formwidgets] fix for py3k no idea why we encode that key...
web/formwidgets.py
--- a/web/formwidgets.py	Mon Oct 05 16:47:55 2015 +0200
+++ b/web/formwidgets.py	Mon Oct 05 16:52:26 2015 +0200
@@ -1011,7 +1011,7 @@
                         except ValueError:
                             raise ProcessFormError(req._("wrong query parameter line %s") % (i+1))
                         # value will be url quoted by build_url_params
-                        values.setdefault(key.encode(req.encoding), []).append(val)
+                        values.setdefault(key, []).append(val)
         if not values:
             return path
         return u'%s?%s' % (path, req.build_url_params(**values))