We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9be8617 commit 180433aCopy full SHA for 180433a
effect/testing.py
@@ -82,8 +82,7 @@ def test_code():
82
used.
83
"""
84
def fmt_log():
85
- return '{{{\n%s\n}}}' % (
86
- '\n'.join(['{}: {}'.format(*x) for x in log]),)
+ return '{{{\n%s\n}}}' % ('\n'.join(['%s: %s' % x for x in log]),)
87
88
def dispatcher(intent):
89
p = sequence(intent)
@@ -97,7 +96,7 @@ def dispatcher(intent):
97
96
else:
98
log.append(("NOT FOUND", intent))
99
raise AssertionError(
100
- "Performer not found: {}! Log follows:\n{}".format(
+ "Performer not found: %s! Log follows:\n%s" % (
101
intent, fmt_log()))
102
103
if fallback_dispatcher is None:
0 commit comments