You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
Largish rework: scan while1stmt for jump out ..
to disambiguate. For this, we use the self.opc JUMP_OPS sets. For this, we neeed to store opc in the parse object. DRY uses of "last = min(last, len(tokens))
This commit is contained in:
@@ -2440,6 +2440,7 @@ class SourceWalker(GenericASTTraversal, object):
|
||||
# modularity is broken here
|
||||
p_insts = self.p.insts
|
||||
self.p.insts = self.scanner.insts
|
||||
self.p.opc = self.scanner.opc
|
||||
ast = python_parser.parse(self.p, tokens, customize)
|
||||
self.p.insts = p_insts
|
||||
except (python_parser.ParserError, AssertionError) as e:
|
||||
|
Reference in New Issue
Block a user