Ticket #17730: 17730-alternative.patch
File 17730-alternative.patch, 832 bytes (added by , 13 years ago) |
---|
-
django/test/html.py
2 2 Comparing two html documents. 3 3 """ 4 4 import re 5 from HTMLParser import HTMLParseError6 5 from django.utils.encoding import force_unicode 7 from django.utils.htmlparser import HTMLParser 6 from django.utils.htmlparser import HTMLParser, HTMLParseError 8 7 9 8 10 9 WHITESPACE = re.compile('\s+') -
django/utils/htmlparser.py
1 1 import HTMLParser as _HTMLParser 2 2 import re 3 3 4 HTMLParseError = _HTMLParser.HTMLParseError 4 5 5 6 class HTMLParser(_HTMLParser.HTMLParser): 6 7 """