diff options
| author | Ray Ashman Jr <ray.ashman.jr@gmail.com> | 2013-11-02 15:27:47 -0400 |
|---|---|---|
| committer | Ray Ashman Jr <ray.ashman.jr@gmail.com> | 2013-11-02 15:27:47 -0400 |
| commit | dcfc8fa9721955dc4fcfb6e5e506be12f74c5b85 (patch) | |
| tree | db0ff9bc296501a9f8eb5f7b44e3b49652103992 /django/utils/html.py | |
| parent | b44d42be6d05e88071844b64c6519223cdd2fa80 (diff) | |
Correct flake8 violation E261
Diffstat (limited to 'django/utils/html.py')
| -rw-r--r-- | django/utils/html.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/html.py b/django/utils/html.py index 81b06efeef..5b2416f03f 100644 --- a/django/utils/html.py +++ b/django/utils/html.py @@ -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)) |
