summaryrefslogtreecommitdiff
path: root/django/utils/html.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-03-30 12:11:05 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-03-30 12:11:05 -0700
commit778ce245dd466bce1b19f89e52cf9ed8f1b46513 (patch)
tree2de2ad5574c99a5918eb35d9bbb6d7c4fdd86ed7 /django/utils/html.py
parent92dbf342868e68dfe60569c60dd5aa5925194221 (diff)
Corrected many style guide violations that the newest version of flake8 catches
Diffstat (limited to 'django/utils/html.py')
-rw-r--r--django/utils/html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/html.py b/django/utils/html.py
index bf4fb02c3d..cf1c0c19e5 100644
--- a/django/utils/html.py
+++ b/django/utils/html.py
@@ -268,7 +268,7 @@ def urlize(text, trim_url_limit=None, nofollow=False, autoescape=False):
url = smart_urlquote(middle)
elif simple_url_2_re.match(middle):
url = smart_urlquote('http://%s' % middle)
- elif not ':' in middle and simple_email_re.match(middle):
+ elif ':' not in middle and simple_email_re.match(middle):
local, domain = middle.rsplit('@', 1)
try:
domain = domain.encode('idna').decode('ascii')