You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
Merge branch 'master' into python-2.4
This commit is contained in:
@@ -89,7 +89,7 @@ ExtractInfo = namedtuple("ExtractInfo",
|
||||
TABLE_DIRECT_FRAGMENT = {
|
||||
'break': ( '%|%rbreak\n', ),
|
||||
'continue ': ( '%|%rcontinue\n', ),
|
||||
'passstmt': ( '%|%rpass\n', ),
|
||||
'pass': ( '%|%rpass\n', ),
|
||||
'raise_stmt0': ( '%|%rraise\n', ),
|
||||
'import': ( '%|import %c%x\n', 2, (2, (0, 1)), ),
|
||||
'importfrom': ( '%|from %[2]{pattr}%x import %c\n', (2, (0, 1)), 3),
|
||||
@@ -856,7 +856,7 @@ class FragmentsWalker(pysource.SourceWalker, object):
|
||||
def n__ifstmts_jump_exit(self, node):
|
||||
if len(node) > 1:
|
||||
if (node[0] == 'c_stmts_opt' and
|
||||
node[0][0] == 'passstmt' and
|
||||
node[0][0] == 'pass' and
|
||||
node[1].kind.startswith('JUMP_FORWARD')):
|
||||
self.set_pos_info(node[1], node[0][0].start, node[0][0].finish)
|
||||
|
||||
|
Reference in New Issue
Block a user