You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 08:49:51 +08:00
Bugs in 2.x relative import '.' and 1.x bytecode
This commit is contained in:
@@ -113,7 +113,7 @@ class Scanner26(scan.Scanner2):
|
||||
i = self.next_stmt[last_stmt]
|
||||
replace = {}
|
||||
while i < codelen - 1:
|
||||
if self.lines[last_stmt].next > i:
|
||||
if self.lines and self.lines[last_stmt].next > i:
|
||||
# Distinguish "print ..." from "print ...,"
|
||||
if self.code[last_stmt] == self.opc.PRINT_ITEM:
|
||||
if self.code[i] == self.opc.PRINT_ITEM:
|
||||
|
Reference in New Issue
Block a user