From 36174f39ca0693374024813914864fb7c3da8311 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 3 Sep 2007 16:13:26 +0200 Subject: [PATCH] rewrote Python 2.5-ism --- Cython/Compiler/TypeSlots.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cython/Compiler/TypeSlots.py b/Cython/Compiler/TypeSlots.py index 1f1d414d..a6316dca 100644 --- a/Cython/Compiler/TypeSlots.py +++ b/Cython/Compiler/TypeSlots.py @@ -85,7 +85,9 @@ class Signature: def method_flags(self): if self.ret_format == "O": - full_args = "O" + self.fixed_arg_format if self.has_dummy_arg else self.fixed_arg_format + full_args = self.fixed_arg_format + if self.has_dummy_arg: + full_args = "O" + full_args if full_args in ["O", "T"]: if self.has_generic_args: return [method_varargs, method_keywords] -- 2.26.2