summaryrefslogtreecommitdiff
path: root/django/utils/html.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-09-09 20:57:26 -0400
committerTim Graham <timograham@gmail.com>2014-09-09 20:57:26 -0400
commita4c23f70deda5321687cd1f759c65a35d161e793 (patch)
tree4c9eff28d4b9dac814dfadab8f53855d343738d3 /django/utils/html.py
parentdf7187d7957f7b94d6f5207e00218a23fe93212e (diff)
Fixed flake8 warnings.
Diffstat (limited to 'django/utils/html.py')
-rw-r--r--django/utils/html.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/utils/html.py b/django/utils/html.py
index 3974bbbc22..43f2141d6b 100644
--- a/django/utils/html.py
+++ b/django/utils/html.py
@@ -284,9 +284,9 @@ def urlize(text, trim_url_limit=None, nofollow=False, autoescape=False):
"""
if not safe_input:
return text, text, trail
- unescaped = (text + trail).replace('&amp;', '&').replace('&lt;', '<'
- ).replace('&gt;', '>').replace('&quot;', '"'
- ).replace('&#39;', "'")
+ unescaped = (text + trail).replace(
+ '&amp;', '&').replace('&lt;', '<').replace(
+ '&gt;', '>').replace('&quot;', '"').replace('&#39;', "'")
# ';' in trail can be either trailing punctuation or end-of-entity marker
if unescaped.endswith(';'):
return text, unescaped[:-1], trail