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 84b22d4 commit 1d2f0d9Copy full SHA for 1d2f0d9
Lib/xml/etree/ElementTree.py
@@ -120,9 +120,7 @@ class ParseError(SyntaxError):
120
121
def iselement(element):
122
"""Return True if *element* appears to be an Element."""
123
- return (hasattr(element, 'tag') and hasattr(element, 'text') and
124
- hasattr(element, 'tail') and callable(element.iter) and
125
- callable(element.items) and callable(element.__len__))
+ return hasattr(element, 'tag')
126
127
class Element:
128
"""An XML element.
0 commit comments