Skip to content

Commit 9e52474

Browse files
authored
Export xml.parsers and xml.etree like CPython 2.7 (jython#343)
Export the same modules as in CPython 2.7 via __all___. Tests cover these modules already.
1 parent 9ca0881 commit 9e52474

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Lib/xml/__init__.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
"""Core XML support for Jython.
22
3-
This package contains two sub-packages:
3+
This package contains four sub-packages:
44
55
dom -- The W3C Document Object Model. This supports DOM Level 1 +
66
Namespaces.
77
8+
parsers -- Python wrappers for XML parsers (currently only supports Expat).
9+
810
sax -- The Simple API for XML, developed by XML-Dev, led by David
911
Megginson and ported to Python by Lars Marius Garshol. This
1012
supports the SAX 2 API.
1113
14+
etree -- The ElementTree XML library. This is a subset of the full
15+
ElementTree XML release.
16+
1217
"""
1318

14-
__all__ = ['dom', 'sax']
1519

20+
__all__ = ["dom", "parsers", "sax", "etree"]
1621

1722
_MINIMUM_XMLPLUS_VERSION = (0, 8, 5)
1823

0 commit comments

Comments
 (0)