From eae9953e14dcf93b928a24e47ffaa2624b8eddd2 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Mon, 11 Dec 2017 17:21:27 -0600
Subject: [PATCH] Fix format C exec strings for Py2.6

---
 loopy/target/c/c_execution.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/loopy/target/c/c_execution.py b/loopy/target/c/c_execution.py
index de8a0b780..c382e2deb 100644
--- a/loopy/target/c/c_execution.py
+++ b/loopy/target/c/c_execution.py
@@ -53,7 +53,7 @@ class CExecutionWrapperGenerator(ExecutionWrapperGeneratorBase):
     def python_dtype_str(self, dtype):
         if np.dtype(str(dtype)).isbuiltin:
             return "_lpy_np."+dtype.name
-        raise Exception('dtype: {} not recognized'.format(dtype))
+        raise Exception('dtype: {0} not recognized'.format(dtype))
 
     # {{{ handle non numpy arguements
 
@@ -240,7 +240,7 @@ class CCompiler(object):
                                 debug_recompile, False)
 
         if recompiled:
-            logger.debug('Kernel {} compiled from source'.format(name))
+            logger.debug('Kernel {0} compiled from source'.format(name))
 
         # and return compiled
         return ctypes.CDLL(ext_file)
-- 
GitLab