diff options
| author | Mathieu Pillard <m@virgule.net> | 2014-05-20 00:27:54 +0200 |
|---|---|---|
| committer | Mathieu Pillard <m@virgule.net> | 2014-05-20 00:27:54 +0200 |
| commit | e747dce3d7e04fe595bbfed54f9554c2725eb757 (patch) | |
| tree | f2c2e310e48062893f8224e08364bbff043afd84 /compressor/parser/__init__.py | |
| parent | 772ecd1ef2ce021d05cbc44eb8602f7d59db2c52 (diff) | |
| parent | 804c302495bd9d043f830ed012c76183eb5a1e2d (diff) | |
| download | django-compressor-1.4.tar.gz | |
Merge branch 'release/1.4'1.4
Diffstat (limited to 'compressor/parser/__init__.py')
| -rw-r--r-- | compressor/parser/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compressor/parser/__init__.py b/compressor/parser/__init__.py index bc8c18c..a3fe78f 100644 --- a/compressor/parser/__init__.py +++ b/compressor/parser/__init__.py @@ -1,3 +1,4 @@ +from django.utils import six from django.utils.functional import LazyObject from django.utils.importlib import import_module @@ -11,8 +12,9 @@ from compressor.parser.html5lib import Html5LibParser # noqa class AutoSelectParser(LazyObject): options = ( - ('lxml.html', LxmlParser), # lxml, extremely fast - ('HTMLParser', HtmlParser), # fast and part of the Python stdlib + # TODO: make lxml.html parser first again + (six.moves.html_parser.__name__, HtmlParser), # fast and part of the Python stdlib + ('lxml.html', LxmlParser), # lxml, extremely fast ) def __init__(self, content): |
