Mercurial > libervia-web
changeset 895:5d7bc53a392d
blog: don't use unicode for _urlencode
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 20 Mar 2016 21:15:49 +0100 |
parents | e4e278255c9a |
children | 06ead60cbfe0 |
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 20:34:21 2016 +0100 +++ b/src/server/blog.py Sun Mar 20 21:15:49 2016 +0100 @@ -86,7 +86,7 @@ def _urlencode(query): """Same as urllib.urlencode, but use '&' instead of '&'""" - return u'&'.join([u"{}={}".format(urllib.quote_plus(unicode(k)), urllib.quote_plus(unicode(v))) + return '&'.join(["{}={}".format(urllib.quote_plus(unicode(k)), urllib.quote_plus(unicode(v))) for k,v in query.iteritems()])