From a4c23f70deda5321687cd1f759c65a35d161e793 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 9 Sep 2014 20:57:26 -0400 Subject: [PATCH] Fixed flake8 warnings. --- django/utils/html.py | 6 +++--- 1 file 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('&', '&').replace('<', '<' - ).replace('>', '>').replace('"', '"' - ).replace(''', "'") + unescaped = (text + trail).replace( + '&', '&').replace('<', '<').replace( + '>', '>').replace('"', '"').replace(''', "'") # ';' in trail can be either trailing punctuation or end-of-entity marker if unescaped.endswith(';'): return text, unescaped[:-1], trail