Skip to content

Commit 1a3f2b8

Browse files
committed
Misc lint
1 parent 5580b2b commit 1a3f2b8

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

uncompyle6/parsers/reducecheck/except_handler.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Copyright (c) 2020 Rocky Bernstein
22

3+
34
def except_handler(self, lhs, n, rule, ast, tokens, first, last):
4-
end_token = tokens[last-1]
5+
end_token = tokens[last - 1]
56

67
# print("XXX", first, last)
78
# for t in range(first, last):
@@ -13,7 +14,7 @@ def except_handler(self, lhs, n, rule, ast, tokens, first, last):
1314
if self.version[:2] == (1, 4):
1415
return False
1516

16-
# Make sure come froms all come from within "except_handler".
17+
# Make sure COME_FROMs froms come from within "except_handler".
1718
if end_token != "COME_FROM":
1819
return False
1920
return end_token.attr < tokens[first].offset

uncompyle6/parsers/reducecheck/ifelsestmt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def ifelsestmt(self, lhs, n, rule, tree, tokens, first, last):
172172
if raise_stmt1 == "raise_stmt1" and raise_stmt1[0] in ("LOAD_ASSERT",):
173173
return True
174174

175-
# Make sure all the offsets from the "come froms" at the
175+
# Make sure all the offsets from the "COME_FROMs" at the
176176
# end of the "if" come from somewhere inside the "if".
177177
# Since the come_froms are ordered so that lowest
178178
# offset COME_FROM is last, it is sufficient to test

uncompyle6/semantics/consts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@
433433
# function_def_async
434434
"mkfuncdeco0": ("%|def %c\n", (0, ("mkfunc", "mkfunc_annotate"))),
435435

436-
# In cases where we desire an explict new line.
436+
# In cases where we desire an explicit new line.
437437
# After docstrings which are followed by a "def" is
438438
# one situations where Python formatting desires two newlines,
439439
# and this is added, as a transformation rule.

0 commit comments

Comments
 (0)