Move comment to it's proper place
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user