Wacky string at beginning of fn which is not docstring...

3.7.6 test_fstring.py tests this.
This commit is contained in:
rocky
2020-01-12 22:59:06 -05:00
parent d8990c89ae
commit f56ad56021
6 changed files with 38 additions and 0 deletions

View File

@@ -353,6 +353,13 @@ TABLE_DIRECT = {
'print_nl_to': ( '%|print >> %c\n', 0 ),
'print_to_items': ( '%C', (0, 2, ', ') ),
# This is only generated by transform
# it is a string at the beginning of a function that is *not* a docstring
# 3.7 test_fstring.py tests for this kind of crap.
# For compatibility with older Python, we'll use "%" instead of
# a format string.
"string_at_beginning": ( '%|"%%s" %% %c\n', 0),
'call_stmt': ( '%|%p\n', (0, 200)),
'break': ( '%|break\n', ),
'continue': ( '%|continue\n', ),