Make sure to serialize numbers in url properly

This commit is contained in:
Honza Kral
2013-07-10 14:07:01 +02:00
parent ffbca79ae0
commit 170b9c6709
+4 -2
View File
@@ -16,8 +16,10 @@ def _escape(part):
"""
if isinstance(part, (list, tuple)):
part = ','.join(part)
# mark ',' as safe for nicer url in logs
return quote_plus(part, ',')
if isinstance(part, (type(''), type(u''))):
# mark ',' as safe for nicer url in logs
return quote_plus(part, ',')
return str(part)
def _make_path(*parts):
"""