mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-31776: Missing "raise from None" in Lib/xml/etree/ElementPath.py (#3978)
This commit is contained in:
parent
676db4bbf2
commit
0df19055c9
1 changed files with 1 additions and 1 deletions
|
@ -285,7 +285,7 @@ def iterfind(elem, path, namespaces=None):
|
|||
try:
|
||||
selector.append(ops[token[0]](next, token))
|
||||
except StopIteration:
|
||||
raise SyntaxError("invalid path")
|
||||
raise SyntaxError("invalid path") from None
|
||||
try:
|
||||
token = next()
|
||||
if token[0] == "/":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue