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:
Eli Bendersky 2012-03-04 07:14:03 +02:00
parent c9590ad745
commit 092af1fc5c
4 changed files with 198 additions and 91 deletions

View file

@ -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):