changeset 896:06ead60cbfe0

blog: no unicode here we said!
author Goffi <goffi@goffi.org>
date Sun, 20 Mar 2016 22:03:10 +0100
parents 5d7bc53a392d
children 6de862136eb6
files src/server/blog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/server/blog.py	Sun Mar 20 21:15:49 2016 +0100
+++ b/src/server/blog.py	Sun Mar 20 22:03:10 2016 +0100
@@ -86,7 +86,7 @@
 
 def _urlencode(query):
     """Same as urllib.urlencode, but use '&amp;' instead of '&'"""
-    return '&amp;'.join(["{}={}".format(urllib.quote_plus(unicode(k)), urllib.quote_plus(unicode(v)))
+    return '&amp;'.join(["{}={}".format(urllib.quote_plus(str(k)), urllib.quote_plus(str(v)))
                           for k,v in query.iteritems()])