From 78bf7d664caf0f18b5467b3518cd51ed83370a4e Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 1 Jul 2012 15:10:55 +0200 Subject: [PATCH] fix TempitaUtilityCode() usage without context --- Cython/Compiler/Code.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py index e925b52..03a125c 100644 --- a/Cython/Compiler/Code.py +++ b/Cython/Compiler/Code.py @@ -392,6 +392,8 @@ def sub_tempita(s, context, file=None, name=None): class TempitaUtilityCode(UtilityCode): def __init__(self, name=None, proto=None, impl=None, file=None, context=None, **kwargs): + if context is None: + context = {} proto = sub_tempita(proto, context, file, name) impl = sub_tempita(impl, context, file, name) super(TempitaUtilityCode, self).__init__( -- 2.7.4