diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2013-06-02 22:19:37 -0400 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2013-06-02 22:19:37 -0400 |
commit | 4a9444ac0b74fbf84cf86b9fcf6055c85e65f62a (patch) | |
tree | 570cbcb2c9ab9cf458edee87490afeffd8377560 /bs4/tests/test_lxml.py | |
parent | 11dad27424b319a2034f59f5a7f48286551102d0 (diff) | |
parent | 4f9a654766df9ddd05e3ef274b4715b42668724f (diff) |
Merged in big encoding-detection refactoring branch.
Diffstat (limited to 'bs4/tests/test_lxml.py')
-rw-r--r-- | bs4/tests/test_lxml.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bs4/tests/test_lxml.py b/bs4/tests/test_lxml.py index 80458de..27cb2d9 100644 --- a/bs4/tests/test_lxml.py +++ b/bs4/tests/test_lxml.py @@ -4,14 +4,16 @@ import re import warnings try: - from bs4.builder import LXMLTreeBuilder, LXMLTreeBuilderForXML - LXML_PRESENT = True import lxml.etree + LXML_PRESENT = True LXML_VERSION = lxml.etree.LXML_VERSION except ImportError, e: LXML_PRESENT = False LXML_VERSION = (0,) +if LXML_PRESENT: + from bs4.builder import LXMLTreeBuilder, LXMLTreeBuilderForXML + from bs4 import ( BeautifulSoup, BeautifulStoneSoup, |