diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2012-08-03 07:10:04 -0700 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2012-08-03 07:10:04 -0700 |
| commit | 129f1ac8484d63c2e61a44fb2a18dd17246c1c4d (patch) | |
| tree | c250a122362ae54f621d0e298d860bfd1adf2ddc /django/utils/html.py | |
| parent | 5aec69ed290552e7ea20bdef416c5bc23f6231f8 (diff) | |
Remove a temporary variable deletion, it's not a big deal and it doesn't exist on python3.
Diffstat (limited to 'django/utils/html.py')
| -rw-r--r-- | django/utils/html.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/html.py b/django/utils/html.py index ca3340ccb1..e1263fbd66 100644 --- a/django/utils/html.py +++ b/django/utils/html.py @@ -33,7 +33,7 @@ link_target_attribute_re = re.compile(r'(<a [^>]*?)target=[^\s>]+') html_gunk_re = re.compile(r'(?:<br clear="all">|<i><\/i>|<b><\/b>|<em><\/em>|<strong><\/strong>|<\/?smallcaps>|<\/?uppercase>)', re.IGNORECASE) hard_coded_bullets_re = re.compile(r'((?:<p>(?:%s).*?[a-zA-Z].*?</p>\s*)+)' % '|'.join([re.escape(x) for x in DOTS]), re.DOTALL) trailing_empty_content_re = re.compile(r'(?:<p>(?: |\s|<br \/>)*?</p>\s*)+\Z') -del x # Temporary variable + def escape(text): """ |
