소스 검색

Fixed flake8 warnings.

Tim Graham 10 년 전
부모
커밋
a4c23f70de
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      django/utils/html.py

+ 3 - 3
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