Jelajahi Sumber

Removed unused unencoded_ampersands_re regex.

Unused since 8b81dee60c1533e714a310fa5c3907356042a64c.
Baptiste Mispelon 5 tahun lalu
induk
melakukan
824981b2dc
1 mengubah file dengan 0 tambahan dan 1 penghapusan
  1. 0 1
      django/utils/html.py

+ 0 - 1
django/utils/html.py

@@ -22,7 +22,6 @@ WRAPPING_PUNCTUATION = [('(', ')'), ('[', ']')]
 # List of possible strings used for bullets in bulleted lists.
 DOTS = ['·', '*', '\u2022', '•', '•', '•']
 
-unencoded_ampersands_re = _lazy_re_compile(r'&(?!(\w+|#\d+);)')
 word_split_re = _lazy_re_compile(r'''([\s<>"']+)''')
 simple_url_re = _lazy_re_compile(r'^https?://\[?\w', re.IGNORECASE)
 simple_url_2_re = _lazy_re_compile(