mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #26676: Add missing XMLPullParser to ElementTree.__all__
This commit is contained in:
parent
0a85c69f1d
commit
dcfebb32e2
4 changed files with 9 additions and 4 deletions
|
@ -460,7 +460,8 @@ Changes in the Python API
|
||||||
|
|
||||||
* The following modules have had missing APIs added to their :attr:`__all__`
|
* The following modules have had missing APIs added to their :attr:`__all__`
|
||||||
attributes to match the documented APIs: :mod:`calendar`, :mod:`csv`,
|
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:`optparse`, :mod:`tarfile`, :mod:`threading` and
|
||||||
:mod:`wave`. This means they will export new symbols when ``import *``
|
:mod:`wave`. This means they will export new symbols when ``import *``
|
||||||
is used. See :issue:`23883`.
|
is used. See :issue:`23883`.
|
||||||
|
|
|
@ -91,8 +91,6 @@ ENTITY_XML = """\
|
||||||
|
|
||||||
|
|
||||||
class ModuleTest(unittest.TestCase):
|
class ModuleTest(unittest.TestCase):
|
||||||
# TODO: this should be removed once we get rid of the global module vars
|
|
||||||
|
|
||||||
def test_sanity(self):
|
def test_sanity(self):
|
||||||
# Import sanity.
|
# Import sanity.
|
||||||
|
|
||||||
|
@ -100,6 +98,10 @@ class ModuleTest(unittest.TestCase):
|
||||||
from xml.etree import ElementInclude
|
from xml.etree import ElementInclude
|
||||||
from xml.etree import ElementPath
|
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):
|
def serialize(elem, to_string=True, encoding='unicode', **options):
|
||||||
if encoding != 'unicode':
|
if encoding != 'unicode':
|
||||||
|
|
|
@ -85,7 +85,7 @@ __all__ = [
|
||||||
"TreeBuilder",
|
"TreeBuilder",
|
||||||
"VERSION",
|
"VERSION",
|
||||||
"XML", "XMLID",
|
"XML", "XMLID",
|
||||||
"XMLParser",
|
"XMLParser", "XMLPullParser",
|
||||||
"register_namespace",
|
"register_namespace",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -237,6 +237,8 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #26676: Added missing XMLPullParser to ElementTree.__all__.
|
||||||
|
|
||||||
- Issue #22854: Change BufferedReader.writable() and
|
- Issue #22854: Change BufferedReader.writable() and
|
||||||
BufferedWriter.readable() to always return False.
|
BufferedWriter.readable() to always return False.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue