Mercurial > libervia-web
comparison 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 |
comparison
equal
deleted
inserted
replaced
895:5d7bc53a392d | 896:06ead60cbfe0 |
---|---|
84 return urllib.unquote(quoted_value).decode('utf-8') | 84 return urllib.unquote(quoted_value).decode('utf-8') |
85 | 85 |
86 | 86 |
87 def _urlencode(query): | 87 def _urlencode(query): |
88 """Same as urllib.urlencode, but use '&' instead of '&'""" | 88 """Same as urllib.urlencode, but use '&' instead of '&'""" |
89 return '&'.join(["{}={}".format(urllib.quote_plus(unicode(k)), urllib.quote_plus(unicode(v))) | 89 return '&'.join(["{}={}".format(urllib.quote_plus(str(k)), urllib.quote_plus(str(v))) |
90 for k,v in query.iteritems()]) | 90 for k,v in query.iteritems()]) |
91 | 91 |
92 | 92 |
93 class TemplateProcessor(object): | 93 class TemplateProcessor(object): |
94 | 94 |