diff options
author | Eli Bendersky <eliben@gmail.com> | 2012-03-04 05:14:03 (GMT) |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2012-03-04 05:14:03 (GMT) |
commit | 092af1fc5cd1b314143ee848025008c4ed862285 (patch) | |
tree | 4cde4a2aee2ba401515f7185c1ffbedf41a035b6 /Lib/xml/etree | |
parent | c9590ad745caa9fc76a8373d19e8019d90e8f9e8 (diff) | |
download | cpython-092af1fc5cd1b314143ee848025008c4ed862285.zip cpython-092af1fc5cd1b314143ee848025008c4ed862285.tar.gz cpython-092af1fc5cd1b314143ee848025008c4ed862285.tar.bz2 |
Issue #14128: Exposing Element as an actual type from _elementtree, rather than a factory function.
This makes the C implementation more aligned with the Python implementation.
Also added some tests to ensure that Element is now a type and that it can
be subclassed.
Diffstat (limited to 'Lib/xml/etree')
-rw-r--r-- | Lib/xml/etree/ElementTree.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/xml/etree/ElementTree.py b/Lib/xml/etree/ElementTree.py index defef0d..a864fa5 100644 --- a/Lib/xml/etree/ElementTree.py +++ b/Lib/xml/etree/ElementTree.py @@ -101,7 +101,6 @@ import sys import re import warnings - class _SimpleElementPath: # emulate pre-1.2 find/findtext/findall behaviour def find(self, element, tag, namespaces=None): |