diff --git a/loopy/target/c/c_execution.py b/loopy/target/c/c_execution.py index de8a0b7808c54d3ef721116d82a94ed3ded7c829..c382e2debc8986de43355b34f9114a65bbbaf881 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)