Skip to content

Commit

Permalink
PR #67 from fsteggink/update_comment for clear element
Browse files Browse the repository at this point in the history
Update comment regarding clearing element in XmlElementReader
  • Loading branch information
justb4 committed Jan 25, 2018
2 parents 4fab049 + 4afcf9b commit e0099b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stetl/filters/xmlelementreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ def process_xml(self, packet):
if self.strip_namespaces:
packet.data = Util.stripNamespaces(elem).getroot()

# Clear the root element, since iterparse still builds a tree
# See http://effbot.org/zone/element-iterparse.htm
# Clear the element which has been read. Don't clear the root document,
# since the last element hasn't been processed yet.
elem.clear()

# If there is a next component, let it process
Expand Down

0 comments on commit e0099b9

Please sign in to comment.