3.7 and 3.8 chained compare fixups

This commit is contained in:
rocky
2019-04-16 10:19:16 -04:00
parent 701d2af54e
commit 2ea8c3b1b1
5 changed files with 44 additions and 17 deletions

View File

@@ -1837,7 +1837,11 @@ class SourceWalker(GenericASTTraversal, object):
typ = m.group('type') or '{'
node = startnode
if m.group('child'):
node = node[int(m.group('child'))]
try:
node = node[int(m.group('child'))]
except:
from trepan.api import debug; debug()
pass
if typ == '%': self.write('%')
elif typ == '+':