summaryrefslogtreecommitdiff
path: root/django/utils/html.py
diff options
context:
space:
mode:
authorAndrew Godwin <andrew@aeracode.org>2012-10-31 10:58:14 +0000
committerAndrew Godwin <andrew@aeracode.org>2012-10-31 10:58:14 +0000
commit7f75460fd6befbef805fee3c91608efb0e9f444d (patch)
treeb72753803d3146bf3355d4d75a0966d26947f7f2 /django/utils/html.py
parent146ed13a111c97c1c04902a6c0eda1e4ee6e604c (diff)
Fixed #19070 -- urlize filter no longer raises exceptions on 2.7
Thanks to claudep for the patch.
Diffstat (limited to 'django/utils/html.py')
-rw-r--r--django/utils/html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/html.py b/django/utils/html.py
index cc8372906b..9816b9accb 100644
--- a/django/utils/html.py
+++ b/django/utils/html.py
@@ -18,7 +18,7 @@ from django.utils.text import normalize_newlines
# Configuration for urlize() function.
TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)']
-WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('&lt;', '&gt;')]
+WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('[', ']'), ('&lt;', '&gt;')]
# List of possible strings used for bullets in bulleted lists.
DOTS = ['&middot;', '*', '\u2022', '&#149;', '&bull;', '&#8226;']