bpo-31776: Missing "raise from None" in Lib/xml/etree/ElementPath.py (#3978)
This commit is contained in:
parent
676db4bbf2
commit
0df19055c9
|
@ -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…
Reference in New Issue