except_cond3 needs to be in 2.x

This commit is contained in:
rocky
2019-07-03 19:16:09 -04:00
parent 68c5b2338f
commit f425db33b7
3 changed files with 6 additions and 2 deletions

View File

@@ -57,6 +57,12 @@ def customize_for_version(self, is_pypy, version):
from uncompyle6.semantics.customize3 import customize_for_version3
customize_for_version3(self, version)
else: # < 3.0
TABLE_DIRECT.update({
'except_cond2' : ( '%|except %c as %c:\n',
(1, 'expr'), (5, 'store') ),
'except_cond3' : ( '%|except %c, %c:\n',
(1, 'expr'), (-2, 'store') )
})
if 2.4 <= version <= 2.6:
TABLE_DIRECT.update({
'comp_for': ( ' for %c in %c', 3, 1 ),