Renamed htmlparser.py to default_htmlparser.py and renamed custom HtmlParser to DefaultHtmlParser

This commit is contained in:
Michael van de Waeter
2011-06-28 10:41:44 +02:00
parent e794b60c8d
commit ba9497611c
2 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ from django.utils.importlib import import_module
# support legacy parser module usage
from compressor.parser.base import ParserBase
from compressor.parser.lxml import LxmlParser
from compressor.parser.htmlparser import HtmlParser
from compressor.parser.default_htmlparser import DefaultHtmlParser as HtmlParser
from compressor.parser.beautifulsoup import BeautifulSoupParser
from compressor.parser.html5lib import Html5LibParser

View File

@@ -1,9 +1,9 @@
from ..HTMLParser import HTMLParser
from HTMLParser import HTMLParser
from django.utils.encoding import smart_unicode
from compressor.exceptions import ParserError
from compressor.parser import ParserBase
class HtmlParser(ParserBase, HTMLParser):
class DefaultHtmlParser(ParserBase, HTMLParser):
def __init__(self, content):
HTMLParser.__init__(self)