From 2d5d71d682c3b149085c5507ba36b86fbbeabf7a Mon Sep 17 00:00:00 2001 From: Navjot Kukreja Date: Tue, 6 Jun 2017 15:25:41 +0100 Subject: [PATCH] small fix to pass test in python 3.4.3 --- devito/dse/manipulation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devito/dse/manipulation.py b/devito/dse/manipulation.py index 0aff5f4116..35dfe34b2d 100644 --- a/devito/dse/manipulation.py +++ b/devito/dse/manipulation.py @@ -224,7 +224,7 @@ def common_subexprs_elimination(exprs, make, mode='default'): # Apply repleacements processed = [e.xreplace(mapper) for e in processed] mapped = [e.xreplace(mapper) for e in mapped] - mapped = [Eq(v, k) for k, v in reversed(mapper.items())] + mapped + mapped = [Eq(v, k) for k, v in reversed(list(mapper.items()))] + mapped # Prepare for the next round for k in picked: