Revise format string handling

fstring_single{1,2} -> format_value{1,2} to match Python AST names
better
This commit is contained in:
rocky
2019-05-11 06:10:12 -04:00
parent bf56fbeeec
commit b94cce7b12
5 changed files with 51 additions and 82 deletions

View File

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