Skip to content

Commit c3fb864

Browse files
committed
Fix names
1 parent 97d5fa0 commit c3fb864

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Lib/xml/etree/ElementTree.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,8 @@ class ElementTree:
528528
"""
529529
def __init__(self, element=None, file=None):
530530
if element is not None and not iselement(element):
531-
raise TypeError('expected an Element, not %s' % type(e).__name__)
531+
raise TypeError('expected an Element, not %s' %
532+
type(element).__name__)
532533
self._root = element # first node
533534
if file:
534535
self.parse(file)
@@ -545,7 +546,8 @@ def _setroot(self, element):
545546
546547
"""
547548
if not iselement(element):
548-
raise TypeError('expected an Element, not %s' % type(e).__name__)
549+
raise TypeError('expected an Element, not %s'
550+
% type(element).__name__)
549551
self._root = element
550552

551553
def parse(self, source, parser=None):

0 commit comments

Comments
 (0)