You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
DRY reducecheck code
This commit is contained in:
@@ -4,6 +4,10 @@ from uncompyle6.scanners.tok import Token
|
||||
|
||||
|
||||
def ifstmts_jump(self, lhs, n, rule, ast, tokens, first, last):
|
||||
|
||||
if len(rule[1]) <= 1 or not ast:
|
||||
return False
|
||||
|
||||
come_froms = ast[-1]
|
||||
# Make sure all of the "come froms" offset at the
|
||||
# end of the "if" come from somewhere inside the "if".
|
||||
|
Reference in New Issue
Block a user