From 35828d661f00c45b3648df3fe7a23de69535be2d Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 7 Feb 2008 07:17:14 +0100 Subject: [PATCH] cleanup --- Cython/Compiler/Nodes.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 7d62b61b..eebd9831 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -1046,13 +1046,9 @@ class DefNode(FuncDefNode): desc, self.name, len(self.args), expected_str)) def signature_has_nongeneric_args(self): - has_generic_args = self.entry.signature.has_generic_args argcount = len(self.args) - if argcount == 0: + if argcount == 0 or (argcount == 1 and self.args[0].is_self_arg): return 0 - elif argcount == 1: - if self.args[0].is_self_arg: - return 0 return 1 def signature_has_generic_args(self): -- 2.26.2