Move comment to it's proper place
This commit is contained in:
@@ -18,12 +18,12 @@ def _escape(part):
|
|||||||
if isinstance(part, (list, tuple)):
|
if isinstance(part, (list, tuple)):
|
||||||
part = ','.join(part)
|
part = ','.join(part)
|
||||||
if isinstance(part, (type(''), type(u''))):
|
if isinstance(part, (type(''), type(u''))):
|
||||||
# mark ',' as safe for nicer url in logs
|
|
||||||
try:
|
try:
|
||||||
part = part.encode('utf-8')
|
part = part.encode('utf-8')
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
# Python 2 and str, no need to re-encode
|
# Python 2 and str, no need to re-encode
|
||||||
pass
|
pass
|
||||||
|
# mark ',' as safe for nicer url in logs
|
||||||
return quote_plus(part, ',')
|
return quote_plus(part, ',')
|
||||||
return str(part)
|
return str(part)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user