We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0a8a64 commit f0356c8Copy full SHA for f0356c8
1 file changed
Lib/xml/etree/ElementTree.py
@@ -527,7 +527,6 @@ class ElementTree:
527
528
"""
529
def __init__(self, element=None, file=None):
530
- # assert element is None or iselement(element)
531
if element is not None and not iselement(element):
532
raise TypeError(f"element must be etree.Element, "
533
f"not {type(element).__name__}")
@@ -546,7 +545,6 @@ def _setroot(self, element):
546
545
with the given element. Use with care!
547
548
549
- # assert iselement(element)
550
if not iselement(element):
551
raise TypeError
552
self._root = element
0 commit comments