mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
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.
This commit is contained in:
parent
c9590ad745
commit
092af1fc5c
4 changed files with 198 additions and 91 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue