Handle 3.6 Format String conversions !r, !s, !a

This commit is contained in:
rocky
2016-08-25 07:26:01 -04:00
parent a67891c563
commit 1087613a27
3 changed files with 3 additions and 2 deletions

View File

@@ -591,7 +591,8 @@ class SourceWalker(GenericASTTraversal, object):
# Python 3.6+ Additions
#######################
TABLE_DIRECT.update({
'formatted_value': ( '{%c}', 0),
'formatted_value': ( '{%c%c}', 0, 1),
'FORMAT_VALUE': ( '%{pattr}', ),
'joined_str': ( "f'%c'", 2),
})
return