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
>>>>> import xml.etree.ElementTree as etree
>>>>> etree.XML("<root></root>")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/.../RustPython/vm/pylib-crate/Lib/xml/etree/ElementTree.py", line 1319, in XML
parser = XMLParser(target=TreeBuilder())
File "/home/.../RustPython/vm/pylib-crate/Lib/xml/etree/ElementTree.py", line 1508, in __init__
parser = expat.ParserCreate(encoding, "}")
TypeError: Expected type 'str', not 'NoneType'
Activity
DimitrisJim commentedon Nov 8, 2021
Yup,
expat.rsis still quite bare-bones (the args, even if parsed correctly, aren't currently used).youknowone commentedon Oct 6, 2026
The originally reported problem no longer reproduces on current main. Closing per the recheck in #8982.
— commented by Grok 4.6