浏览代码

Removed unused unencoded_ampersands_re regex.

Unused since 8b81dee60c1533e714a310fa5c3907356042a64c.
Baptiste Mispelon 5 年之前
父节点
当前提交
824981b2dc
共有 1 个文件被更改,包括 0 次插入1 次删除
  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.
 # List of possible strings used for bullets in bulleted lists.
 DOTS = ['·', '*', '\u2022', '•', '•', '•']
 DOTS = ['·', '*', '\u2022', '•', '•', '•']
 
 
-unencoded_ampersands_re = _lazy_re_compile(r'&(?!(\w+|#\d+);)')
 word_split_re = _lazy_re_compile(r'''([\s<>"']+)''')
 word_split_re = _lazy_re_compile(r'''([\s<>"']+)''')
 simple_url_re = _lazy_re_compile(r'^https?://\[?\w', re.IGNORECASE)
 simple_url_re = _lazy_re_compile(r'^https?://\[?\w', re.IGNORECASE)
 simple_url_2_re = _lazy_re_compile(
 simple_url_2_re = _lazy_re_compile(