diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2017-10-16 08:24:22 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-10-16 08:24:22 (GMT) |
commit | 0df19055c92a0b0728659807978e4ca4d6c8e1bc (patch) | |
tree | 2a699db98ad6085ba9f92e595be62c8ad65fa395 /Lib/xml/etree | |
parent | 676db4bbf2e7c18dc7c35add17dd3bbdc2d3eeb3 (diff) | |
download | cpython-0df19055c92a0b0728659807978e4ca4d6c8e1bc.zip cpython-0df19055c92a0b0728659807978e4ca4d6c8e1bc.tar.gz cpython-0df19055c92a0b0728659807978e4ca4d6c8e1bc.tar.bz2 |
bpo-31776: Missing "raise from None" in Lib/xml/etree/ElementPath.py (#3978)
Diffstat (limited to 'Lib/xml/etree')
-rw-r--r-- | Lib/xml/etree/ElementPath.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xml/etree/ElementPath.py b/Lib/xml/etree/ElementPath.py index c9d6ef3..ef32917 100644 --- a/Lib/xml/etree/ElementPath.py +++ b/Lib/xml/etree/ElementPath.py @@ -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] == "/": |