Move comment to it's proper place

This commit is contained in:
Honza Kral
2013-07-24 03:33:28 +02:00
parent 6a76c85893
commit 71fe50b347
+1 -1
View File
@@ -18,12 +18,12 @@ def _escape(part):
if isinstance(part, (list, tuple)):
part = ','.join(part)
if isinstance(part, (type(''), type(u''))):
# mark ',' as safe for nicer url in logs
try:
part = part.encode('utf-8')
except UnicodeDecodeError:
# Python 2 and str, no need to re-encode
pass
# mark ',' as safe for nicer url in logs
return quote_plus(part, ',')
return str(part)