* 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`.
class ModuleTest(unittest.TestCase):
- # TODO: this should be removed once we get rid of the global module vars
-
def test_sanity(self):
# Import sanity.
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':
"TreeBuilder",
"VERSION",
"XML", "XMLID",
- "XMLParser",
+ "XMLParser", "XMLPullParser",
"register_namespace",
]
Library
-------
+- Issue #26676: Added missing XMLPullParser to ElementTree.__all__.
+
- Issue #22854: Change BufferedReader.writable() and
BufferedWriter.readable() to always return False.