Commit 79665453 authored by Vincent Pelletier's avatar Vincent Pelletier

Do not decode & encode when unquoting urls.

This causes errors and solves nothing.
parent 61b390ce
......@@ -107,10 +107,7 @@ if lzma is not None:
# to be urlencoded, so pure ascii. Are timestamps localised ?
INPUT_ENCODING = 'ascii'
if sys.version_info < (3, ):
unquoteToHtml = lambda x: escape(unquote(x.encode('ascii')).decode('utf-8'))
else:
unquoteToHtml = lambda x: escape(unquote(x))
unquoteToHtml = lambda x: escape(unquote(x))
MONTH_VALUE_DICT = dict((y, x) for (x, y) in enumerate(('Jan', 'Feb', 'Mar',
'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'), 1))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment