1
0
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:
Ray Ashman Jr
2013-11-02 15:27:47 -04:00
parent b44d42be6d
commit dcfc8fa972
18 changed files with 59 additions and 59 deletions

View File

@@ -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))