Skip to content

Commit 703716c

Browse files
committed
Pick up recewnt try/except change from 2.5
1 parent 14993d0 commit 703716c

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

uncompyle6/parsers/parse24.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -120,19 +120,6 @@ def reduce_is_invalid(self, rule, ast, tokens, first, last):
120120
token_len = len(tokens)
121121
if 0 <= token_len < len(tokens):
122122
return not int(tokens[first].pattr) == tokens[last].offset
123-
elif lhs == "try_except":
124-
if last == len(tokens):
125-
last -= 1
126-
if tokens[last] != "COME_FROM" and tokens[last - 1] == "COME_FROM":
127-
last -= 1
128-
return (
129-
tokens[last] == "COME_FROM"
130-
and tokens[last - 1] == "END_FINALLY"
131-
and tokens[last - 2] == "POP_TOP"
132-
and tokens[last - 3].kind != "JUMP_FORWARD"
133-
)
134-
135-
return False
136123

137124

138125
class Python24ParserSingle(Python24Parser, PythonParserSingle):

0 commit comments

Comments
 (0)