From 8c4047f06e7bf24358da32ca6b1ce6fc0a27e449 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Mon, 21 Dec 2015 11:47:56 +0100 Subject: Fix printing edits in monkey.test --- monkey/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'monkey') diff --git a/monkey/test.py b/monkey/test.py index 9eb91e1..71d8aa5 100755 --- a/monkey/test.py +++ b/monkey/test.py @@ -139,7 +139,7 @@ elif sys.argv[2] == 'info': # Print all observed edits and their costs. elif sys.argv[3] == 'edits': - for (before, after), cost in sorted(edits.items(), key=lambda x: x[1]): + for (path, before, after), cost in sorted(edits.items(), key=lambda x: x[1]): print(' {:.4f}\t{} → {}'.format(cost, stringify(before) if before else 'ε', stringify(after) if after else 'ε')) # Print all observed edits and their costs. -- cgit v1.2.1