mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Closes #2892: preserve iterparse events in case of SyntaxError.
This commit is contained in:
parent
c1e73c30e9
commit
91d5193b3a
4 changed files with 53 additions and 34 deletions
|
@ -754,6 +754,7 @@ def iterparse():
|
|||
... print(action, elem.tag)
|
||||
... except ET.ParseError as v:
|
||||
... print(v)
|
||||
end document
|
||||
junk after document element: line 1, column 12
|
||||
"""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue