bpo-31776: Missing "raise from None" in Lib/xml/etree/ElementPath.py (#3978)

This commit is contained in:
Pablo Galindo 2017-10-16 09:24:22 +01:00 committed by Serhiy Storchaka
parent 676db4bbf2
commit 0df19055c9
1 changed files with 1 additions and 1 deletions

View File

@ -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] == "/":