# HG changeset patch # Parent 0c8037c25c65ac0ab8b73883dcc8ae516365fb4c Issue #23883: Add missing XMLPullParser to ElementTree.__all__ diff -r 0c8037c25c65 -r 9110e9aa82a5 Doc/whatsnew/3.6.rst --- a/Doc/whatsnew/3.6.rst Wed Mar 30 22:53:41 2016 +0000 +++ b/Doc/whatsnew/3.6.rst Thu Mar 31 06:55:04 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 0c8037c25c65 -r 9110e9aa82a5 Lib/test/test_xml_etree.py --- a/Lib/test/test_xml_etree.py Wed Mar 30 22:53:41 2016 +0000 +++ b/Lib/test/test_xml_etree.py Thu Mar 31 06:55:04 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 0c8037c25c65 -r 9110e9aa82a5 Lib/xml/etree/ElementTree.py --- a/Lib/xml/etree/ElementTree.py Wed Mar 30 22:53:41 2016 +0000 +++ b/Lib/xml/etree/ElementTree.py Thu Mar 31 06:55:04 2016 +0000 @@ -85,7 +85,7 @@ "TreeBuilder", "VERSION", "XML", "XMLID", - "XMLParser", + "XMLParser", "XMLPullParser", "register_namespace", ] diff -r 0c8037c25c65 -r 9110e9aa82a5 Misc/NEWS --- a/Misc/NEWS Wed Mar 30 22:53:41 2016 +0000 +++ b/Misc/NEWS Thu Mar 31 06:55:04 2016 +0000 @@ -237,6 +237,8 @@ Library ------- +- Issue #23883: Added missing XMLPullParser to ElementTree.__all__. + - Issue #26492: Exhausted iterator of array.array now conforms with the behavior of iterators of other mutable sequences: it lefts exhausted even if iterated array is extended.