Ticket #17730: 17730-alternative.patch

File 17730-alternative.patch, 832 bytes (added by Aymeric Augustin, 13 years ago)
  • django/test/html.py

     
    22Comparing two html documents.
    33"""
    44import re
    5 from HTMLParser import HTMLParseError
    65from django.utils.encoding import force_unicode
    7 from django.utils.htmlparser import HTMLParser
     6from django.utils.htmlparser import HTMLParser, HTMLParseError
    87
    98
    109WHITESPACE = re.compile('\s+')
  • django/utils/htmlparser.py

     
    11import HTMLParser as _HTMLParser
    22import re
    33
     4HTMLParseError = _HTMLParser.HTMLParseError
    45
    56class HTMLParser(_HTMLParser.HTMLParser):
    67    """
Back to Top