From: Stefan Behnel Date: Thu, 7 Feb 2008 06:17:14 +0000 (+0100) Subject: cleanup X-Git-Tag: 0.9.6.14~29^2~37^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=35828d661f00c45b3648df3fe7a23de69535be2d;p=cython.git cleanup --- 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):