Commits

Lars Yencken  committed e6c3296

Fixes a bug in use of iterparse.

  • Participants
  • Parent commits 13de4d9

Comments (0)

Files changed (1)

     else:
         istream = stream_or_file
 
-    context = ElementTree.iterparse(istream, events=('start', 'end'))
+    context = iter(ElementTree.iterparse(istream, events=('start', 'end')))
     event, root = context.next()
     root = root