Skip to content

Commit 180433a

Browse files
committed
apparently I support python 2.6
1 parent 9be8617 commit 180433a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

effect/testing.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ def test_code():
8282
used.
8383
"""
8484
def fmt_log():
85-
return '{{{\n%s\n}}}' % (
86-
'\n'.join(['{}: {}'.format(*x) for x in log]),)
85+
return '{{{\n%s\n}}}' % ('\n'.join(['%s: %s' % x for x in log]),)
8786

8887
def dispatcher(intent):
8988
p = sequence(intent)
@@ -97,7 +96,7 @@ def dispatcher(intent):
9796
else:
9897
log.append(("NOT FOUND", intent))
9998
raise AssertionError(
100-
"Performer not found: {}! Log follows:\n{}".format(
99+
"Performer not found: %s! Log follows:\n%s" % (
101100
intent, fmt_log()))
102101

103102
if fallback_dispatcher is None:

0 commit comments

Comments
 (0)