Python 3.3 tolerance

This commit is contained in:
rocky
2022-04-25 07:53:36 -04:00
parent ee4d166e71
commit 0f525c142d
4 changed files with 17 additions and 20 deletions

View File

@@ -221,7 +221,7 @@ class NonterminalActions:
else:
# from trepan.api import debug; debug()
raise TypeError(
f"Internal Error: n_const_list expects dict, list set, or set; got {lastnodetype}"
"Internal Error: n_const_list expects dict, list set, or set; got %s" % lastnodetype
)
self.indent_more(INDENT_PER_LEVEL)
@@ -240,7 +240,7 @@ class NonterminalActions:
else:
if sep != "":
sep += " "
self.write(f"{sep} {repr(keys[i])}: {value}")
self.write("%s %s: %s" % (sep, repr(keys[i]), value))
sep = ","
else:
for elem in flat_elems: