Fix precidence between list_if and if_expr in 3.x

This commit is contained in:
rocky
2019-05-05 08:16:29 -04:00
parent bb94c7f5bc
commit 6df65a87bc
3 changed files with 10 additions and 1 deletions

View File

@@ -22,7 +22,10 @@ def customize_for_version37(self, version):
# Python 3.7+ changes
#######################
PRECEDENCE['attribute37'] = 2
PRECEDENCE['attribute37'] = 2
PRECEDENCE['ifexp_37a'] = 28
PRECEDENCE['ifexp_37b'] = 28
TABLE_DIRECT.update({
'and_not': ( '%c and not %c',
(0, 'expr'), (2, 'expr') ),