diff options
author | Leonard Richardson <leonardr@segfault.org> | 2015-06-26 07:06:55 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2015-06-26 07:06:55 -0400 |
commit | d728b9cbd6cd5954acf7c9c32fe2f1878809d6e8 (patch) | |
tree | 5ac7ff335ab04fbc85e10fe04859e76282fbfc20 /bs4/dammit.py | |
parent | c7b7a22a46064c6362eebb5670022b06bf601daf (diff) |
Added a sanity check helper method that makes sure all the elements of a tree are properly connected via .next_element and .previous_element.
Diffstat (limited to 'bs4/dammit.py')
-rw-r--r-- | bs4/dammit.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bs4/dammit.py b/bs4/dammit.py index 68ed81f..7ced3a5 100644 --- a/bs4/dammit.py +++ b/bs4/dammit.py @@ -3,10 +3,11 @@ This library converts a bytestream to Unicode through any means necessary. It is heavily based on code from Mark Pilgrim's Universal -Feed Parser. It works best on XML and XML, but it does not rewrite the +Feed Parser. It works best on XML and HTML, but it does not rewrite the XML or HTML to reflect a new encoding; that's the tree builder's job. """ +from pdb import set_trace import codecs from htmlentitydefs import codepoint2name import re |