mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
Marked bytestrings with b prefix. Refs #18269
This is a preparation for unicode literals general usage in Django (Python 3 compatibility).
This commit is contained in:
@@ -116,7 +116,7 @@ def smart_urlquote(url):
|
||||
# contains a % not followed by two hexadecimal digits. See #9655.
|
||||
if '%' not in url or unquoted_percents_re.search(url):
|
||||
# See http://bugs.python.org/issue2637
|
||||
url = urllib.quote(smart_str(url), safe='!*\'();:@&=+$,/?#[]~')
|
||||
url = urllib.quote(smart_str(url), safe=b'!*\'();:@&=+$,/?#[]~')
|
||||
|
||||
return force_unicode(url)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user