You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
More lint
This commit is contained in:
@@ -893,7 +893,7 @@ class SourceWalker(GenericASTTraversal, NonterminalActions, ComprehensionMixin):
|
|||||||
p2 = (1, -2, ", ")
|
p2 = (1, -2, ", ")
|
||||||
if op == "CALL_FUNCTION_VAR":
|
if op == "CALL_FUNCTION_VAR":
|
||||||
# Python 3.5 only puts optional args (the VAR part)
|
# Python 3.5 only puts optional args (the VAR part)
|
||||||
# lowest down the stack
|
# the lowest down the stack
|
||||||
if self.version == (3, 5):
|
if self.version == (3, 5):
|
||||||
if str == "%c(%C, ":
|
if str == "%c(%C, ":
|
||||||
entry = ("%c(*%C, %c)", 0, p2, -2)
|
entry = ("%c(*%C, %c)", 0, p2, -2)
|
||||||
@@ -917,7 +917,7 @@ class SourceWalker(GenericASTTraversal, NonterminalActions, ComprehensionMixin):
|
|||||||
elif op == "CALL_FUNCTION_VAR_KW":
|
elif op == "CALL_FUNCTION_VAR_KW":
|
||||||
str += "*%c, **%c)"
|
str += "*%c, **%c)"
|
||||||
# Python 3.5 only puts optional args (the VAR part)
|
# Python 3.5 only puts optional args (the VAR part)
|
||||||
# lowest down the stack
|
# the lowest down the stack
|
||||||
na = v & 0xFF # positional parameters
|
na = v & 0xFF # positional parameters
|
||||||
if self.version == (3, 5) and na == 0:
|
if self.version == (3, 5) and na == 0:
|
||||||
if p2[2]:
|
if p2[2]:
|
||||||
@@ -1194,7 +1194,7 @@ class SourceWalker(GenericASTTraversal, NonterminalActions, ComprehensionMixin):
|
|||||||
return transform_tree
|
return transform_tree
|
||||||
|
|
||||||
# The bytecode for the end of the main routine has a
|
# The bytecode for the end of the main routine has a
|
||||||
# "return None". However you can't issue a "return" statement in
|
# "return None". However, you can't issue a "return" statement in
|
||||||
# main. So as the old cigarette slogan goes: I'd rather switch (the token stream)
|
# main. So as the old cigarette slogan goes: I'd rather switch (the token stream)
|
||||||
# than fight (with the grammar to not emit "return None").
|
# than fight (with the grammar to not emit "return None").
|
||||||
if self.hide_internal:
|
if self.hide_internal:
|
||||||
|
Reference in New Issue
Block a user