Misc lint

This commit is contained in:
rocky
2024-07-21 17:34:06 -04:00
parent 5580b2b795
commit 1a3f2b8ab0
3 changed files with 5 additions and 4 deletions

View File

@@ -1,7 +1,8 @@
# Copyright (c) 2020 Rocky Bernstein
def except_handler(self, lhs, n, rule, ast, tokens, first, last):
end_token = tokens[last-1]
end_token = tokens[last - 1]
# print("XXX", first, last)
# for t in range(first, last):
@@ -13,7 +14,7 @@ def except_handler(self, lhs, n, rule, ast, tokens, first, last):
if self.version[:2] == (1, 4):
return False
# Make sure come froms all come from within "except_handler".
# Make sure COME_FROMs froms come from within "except_handler".
if end_token != "COME_FROM":
return False
return end_token.attr < tokens[first].offset