Permalink
Browse files

Python 2.3 fixes

  • Loading branch information...
1 parent 6fcd34f commit e802e8a40b2cceadbbd9861f8daf744218947612 @rguillebert rguillebert committed Jun 28, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 Cython/CodeWriter.py
View
5 Cython/CodeWriter.py
@@ -248,7 +248,10 @@ def visit_CTypeDefNode(self, node):
self.endline()
def visit_FuncDefNode(self, node):
- self.startline(u"def %s(" % (node.entry.name if node.entry != None else node.name))
+ if node.entry != None:
+ self.startline(u"def %s(" % node.entry.name)
+ else:
+ self.startline(u"def %s(" % node.name)
self.comma_separated_list(node.args)
self.endline(u"):")
self.indent()

0 comments on commit e802e8a

Please sign in to comment.