You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
13 lines
390 B
Python
13 lines
390 B
Python
# Copyright (c) 2020 Rocky Bernstein
|
|
|
|
def except_handler(self, lhs, n, rule, ast, tokens, first, last):
|
|
end_token = tokens[last-1]
|
|
# for t in range(first, last):
|
|
# print(tokens[t])
|
|
# print("=" * 30)
|
|
|
|
# Make sure come froms all come from within "except_handler".
|
|
if end_token != "COME_FROM":
|
|
return False
|
|
return end_token.attr < tokens[first].offset
|