You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
More 2.7 compatibility
This commit is contained in:
@@ -3,9 +3,7 @@
|
|||||||
from uncompyle6.scanners.tok import Token
|
from uncompyle6.scanners.tok import Token
|
||||||
|
|
||||||
|
|
||||||
def ifstmts_jump(
|
def ifstmts_jump(self, lhs, n, rule, ast, tokens, first, last):
|
||||||
self, lhs, n, rule, ast, tokens, first, last
|
|
||||||
) -> bool:
|
|
||||||
come_froms = ast[-1]
|
come_froms = ast[-1]
|
||||||
# Make sure all of the "come froms" offset at the
|
# Make sure all of the "come froms" offset at the
|
||||||
# end of the "if" come from somewhere inside the "if".
|
# end of the "if" come from somewhere inside the "if".
|
||||||
|
@@ -1,9 +1,7 @@
|
|||||||
# Copyright (c) 2020 Rocky Bernstein
|
# Copyright (c) 2020 Rocky Bernstein
|
||||||
|
|
||||||
|
|
||||||
def while1elsestmt(
|
def while1elsestmt(self, lhs, n, rule, ast, tokens, first, last):
|
||||||
self, lhs, n, rule, ast, tokens, first, last
|
|
||||||
) -> bool:
|
|
||||||
if last == n:
|
if last == n:
|
||||||
# Adjust for fuzziness in parsing
|
# Adjust for fuzziness in parsing
|
||||||
last -= 1
|
last -= 1
|
||||||
|
@@ -1,9 +1,7 @@
|
|||||||
# Copyright (c) 2020 Rocky Bernstein
|
# Copyright (c) 2020 Rocky Bernstein
|
||||||
|
|
||||||
|
|
||||||
def while1stmt(
|
def while1stmt(self, lhs, n, rule, ast, tokens, first, last:
|
||||||
self, lhs, n, rule, ast, tokens, first, last
|
|
||||||
) -> bool:
|
|
||||||
|
|
||||||
# If there is a fall through to the COME_FROM_LOOP, then this is
|
# If there is a fall through to the COME_FROM_LOOP, then this is
|
||||||
# not a while 1. So the instruction before should either be a
|
# not a while 1. So the instruction before should either be a
|
||||||
|
Reference in New Issue
Block a user