summaryrefslogtreecommitdiff
path: root/NEWS.txt
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2013-05-07 14:12:10 -0400
committerLeonard Richardson <leonardr@segfault.org>2013-05-07 14:12:10 -0400
commit39efcb4b7ab30145b3733ba820f3c0df0da35ace (patch)
treeac8be4a47b4c16b936f94f25fa39a174872e80ce /NEWS.txt
parent07bafa37e866876563ecd729c6a2adaa6d6d01ff (diff)
Fixed up diagnose() and added it to the docs.
Diffstat (limited to 'NEWS.txt')
-rw-r--r--NEWS.txt19
1 files changed, 17 insertions, 2 deletions
diff --git a/NEWS.txt b/NEWS.txt
index 1daa84e..7abc700 100644
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -15,8 +15,23 @@
or
from bs4 import _soup
- This may change in the future, so don't use this in code that goes
- into a file.
+ The alias may change in the future, so don't use this in code you're
+ going to run more than once.
+
+* Added the 'diagnose' submodule, which includes several useful
+ functions for reporting problems and doing tech support.
+
+ * diagnose(data) tries the given markup on every installed parser,
+ reporting exceptions and displaying successes. If a parser is not
+ installed, diagnose() mentions this fact.
+
+ * lxml_trace(data, html=True) runs the given markup through lxml's
+ XML parser or HTML parser, and prints out the parser events as
+ they happen. This helps you quickly determine whether a given
+ problem occurs in lxml code or Beautiful Soup code.
+
+ * htmlparser_trace(data) is the same thing, but for Python's
+ built-in HTMLParser class.
* The prettify() method now leaves the contents of <pre> tags
alone. [bug=1095654]