Python 3.4: MAKE_FUNCTION starts to work.

This commit is contained in:
rocky
2015-12-19 11:15:48 -05:00
parent c0fcb5fc52
commit 93ab1f0281
12 changed files with 75 additions and 33 deletions

View File

@@ -41,10 +41,10 @@ class Scanner34(scan.Scanner):
arg = bytecode[pos+1] + bytecode[pos+2] * 256
return arg
def disassemble(self, co):
def disassemble(self, co, classname=None):
fn = self.disassemble_built_in if PYTHON_VERSION == 3.4 \
else self.disassemble_cross_version
return fn(co)
return fn(co, classname)
def disassemble_built_in(self, co, classname=None):
# Container for tokens