Supoer multiple parsers, specifically for Python2 and Python3. In the

process some OO cleanup and some global variable hacks removed.
This commit is contained in:
rocky
2015-12-16 22:08:29 -05:00
parent a362b47b15
commit 2dc8375ed0
16 changed files with 1376 additions and 715 deletions

View File

@@ -29,7 +29,7 @@ import uncompyle6.scanner as scan
class Scanner34(scan.Scanner):
def __init__(self):
self.Token = scan.Scanner.__init__(self, 3.4) # check
scan.Scanner.__init__(self, 3.4) # check
def disassemble(self, co):
fn = self.disassemble_built_in if PYTHON_VERSION == 3.4 \