New submission from Pablo <[email protected]>:
Based on bpo-29762
(https://github.com/python/cpython/commit/5affd23e6f42125998724787025080a24839266e),
there is an inconsistency on one exception chain in
/Lib/xml/etree/ElementPath.py:
try:
selector.append(ops[token[0]](next, token))
except StopIteration:
raise SyntaxError("invalid path")
should be
raise SyntaxError("invalid path") from None
----------
components: Library (Lib)
messages: 304288
nosy: pablogsal
priority: normal
severity: normal
status: open
title: Inconsistent exception chaining in /Lib/xml/etree/ElementPath.py
type: behavior
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue31776>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com