You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh-157366: Remove leftover bytes support from _elementtree
It was the result of improper translation of the PyString C API used in
Python 2 to PyBytes. The Python implementation accepts only str there.
* checkpath() no longer checks a bytes path for XPath characters, so
find(), findall() and findtext() with a bytes path now raise TypeError,
like iterfind() and the Python implementation.
* Element.iter() no longer treats b'*' as a wildcard.
* XMLParser no longer accepts bytes event names. Non-str event names are
now reported as "unknown event", like in the Python implementation.
* Remove the dead code for concatenating one-byte bytes in TreeBuilder.
0 commit comments