projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c59119
)
cleanup
author
Stefan Behnel
<scoder@users.berlios.de>
Thu, 7 Feb 2008 06:17:14 +0000
(07:17 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Thu, 7 Feb 2008 06:17:14 +0000
(07:17 +0100)
Cython/Compiler/Nodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Nodes.py
b/Cython/Compiler/Nodes.py
index 7d62b61be9354205394a448801ab837f1bb85ab0..eebd9831a35b817dd7a9586f396b39895e6e3ac8 100644
(file)
--- 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):