Fix improper 3.0 class handling...

... is like 3.1 not 2.7
This commit is contained in:
rocky
2018-04-12 17:59:39 -04:00
parent 8734608929
commit edbab038ca
5 changed files with 8 additions and 2 deletions

View File

@@ -32,6 +32,8 @@ def customize_for_version3(self, version):
'store_locals': ( '%|# inspect.currentframe().f_locals = __locals__\n', ),
})
assert version >= 3.0
if version >= 3.3:
def n_yield_from(node):
self.write('yield from')