rewrote Python 2.5-ism
authorStefan Behnel <scoder@users.berlios.de>
Mon, 3 Sep 2007 14:13:26 +0000 (16:13 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 3 Sep 2007 14:13:26 +0000 (16:13 +0200)
Cython/Compiler/TypeSlots.py

index 1f1d414dbfaf32ff54225f7f1e39752618b4ae09..a6316dca64db4cd5954ce45300255f47019bc7fc 100644 (file)
@@ -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]