show-asm on python2.5 is optional

make scanner2 look a little more like scanner3
This commit is contained in:
rocky
2016-12-17 08:01:25 -05:00
parent da50394841
commit eebec48308
2 changed files with 17 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ JUMP_OPs = opcode_25.JUMP_OPs
# The history is that 2.7 support is the cleanest,
# then from that we got 2.6 and so on.
class Scanner25(scan.Scanner26):
def __init__(self, show_asm):
def __init__(self, show_asm=False):
# There are no differences in initialization between
# 2.5 and 2.6
self.opc = opcode_25