[New-bugs-announce] [issue31776] Inconsistent exception chaining in /Lib/xml/etree/ElementPath.py
Pablo
report at bugs.python.org
Thu Oct 12 16:59:28 EDT 2017
New submission from Pablo <pablogsal at gmail.com>:
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 <report at bugs.python.org>
<https://bugs.python.org/issue31776>
_______________________________________
More information about the New-bugs-announce
mailing list