From 6bb2e08f37603f1e1f765dced94c20ef98920fe4 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Thu, 4 Feb 2010 13:57:58 -0800 Subject: [PATCH] Fix class in template specialization. --- Cython/Compiler/PyrexTypes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py index e60ced01..4f068ace 100755 --- a/Cython/Compiler/PyrexTypes.py +++ b/Cython/Compiler/PyrexTypes.py @@ -1846,6 +1846,8 @@ class CppClassType(CType): return self.specialize(dict(zip(self.templates, template_values))) def specialize(self, values): + if not self.templates: + return self key = tuple(values.items()) if key in self.specializations: return self.specializations[key] -- 2.26.2