diff src/server/blog.py @ 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 2d15b484ca33
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()])