mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
Correct flake8 violation E261
This commit is contained in:
@@ -175,8 +175,8 @@ def smart_urlquote(url):
|
||||
try:
|
||||
scheme, netloc, path, query, fragment = urlsplit(url)
|
||||
try:
|
||||
netloc = netloc.encode('idna').decode('ascii') # IDN -> ACE
|
||||
except UnicodeError: # invalid domain part
|
||||
netloc = netloc.encode('idna').decode('ascii') # IDN -> ACE
|
||||
except UnicodeError: # invalid domain part
|
||||
pass
|
||||
else:
|
||||
url = urlunsplit((scheme, netloc, path, query, fragment))
|
||||
|
||||
Reference in New Issue
Block a user