changeset: 100820:3d6b67361749 user: Martin Panter date: Fri Apr 01 06:55:55 2016 +0000 files: Doc/whatsnew/3.6.rst Lib/test/test_xml_etree.py Lib/xml/etree/ElementTree.py Misc/NEWS description: Issue #26676: Add missing XMLPullParser to ElementTree.__all__ diff -r 307da5f21fd4 -r 3d6b67361749 Doc/whatsnew/3.6.rst --- a/Doc/whatsnew/3.6.rst Thu Mar 31 19:20:03 2016 -0400 +++ b/Doc/whatsnew/3.6.rst Fri Apr 01 06:55:55 2016 +0000 @@ -460,7 +460,8 @@ * The following modules have had missing APIs added to their :attr:`__all__` attributes to match the documented APIs: :mod:`calendar`, :mod:`csv`, - :mod:`enum`, :mod:`fileinput`, :mod:`ftplib`, :mod:`logging`, + :mod:`~xml.etree.ElementTree`, :mod:`enum`, + :mod:`fileinput`, :mod:`ftplib`, :mod:`logging`, :mod:`optparse`, :mod:`tarfile`, :mod:`threading` and :mod:`wave`. This means they will export new symbols when ``import *`` is used. See :issue:`23883`. diff -r 307da5f21fd4 -r 3d6b67361749 Lib/test/test_xml_etree.py --- a/Lib/test/test_xml_etree.py Thu Mar 31 19:20:03 2016 -0400 +++ b/Lib/test/test_xml_etree.py Fri Apr 01 06:55:55 2016 +0000 @@ -91,8 +91,6 @@ class ModuleTest(unittest.TestCase): - # TODO: this should be removed once we get rid of the global module vars - def test_sanity(self): # Import sanity. @@ -100,6 +98,10 @@ from xml.etree import ElementInclude from xml.etree import ElementPath + def test_all(self): + names = ("xml.etree.ElementTree", "_elementtree") + support.check__all__(self, ET, names, blacklist=("HTML_EMPTY",)) + def serialize(elem, to_string=True, encoding='unicode', **options): if encoding != 'unicode': diff -r 307da5f21fd4 -r 3d6b67361749 Lib/xml/etree/ElementTree.py --- a/Lib/xml/etree/ElementTree.py Thu Mar 31 19:20:03 2016 -0400 +++ b/Lib/xml/etree/ElementTree.py Fri Apr 01 06:55:55 2016 +0000 @@ -85,7 +85,7 @@ "TreeBuilder", "VERSION", "XML", "XMLID", - "XMLParser", + "XMLParser", "XMLPullParser", "register_namespace", ] diff -r 307da5f21fd4 -r 3d6b67361749 Misc/NEWS --- a/Misc/NEWS Thu Mar 31 19:20:03 2016 -0400 +++ b/Misc/NEWS Fri Apr 01 06:55:55 2016 +0000 @@ -237,6 +237,8 @@ Library ------- +- Issue #26676: Added missing XMLPullParser to ElementTree.__all__. + - Issue #22854: Change BufferedReader.writable() and BufferedWriter.readable() to always return False.