applied pending fix by Greg
authorStefan Behnel <scoder@users.berlios.de>
Wed, 11 Jun 2008 19:36:26 +0000 (21:36 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Wed, 11 Jun 2008 19:36:26 +0000 (21:36 +0200)
Cython/Compiler/PyrexTypes.py

index c6506ae0824b400059d1a7b9159798f64e0b9276..092d2536ce45e0aba1291681c014e63da987c4d6 100644 (file)
@@ -814,8 +814,6 @@ class CFuncType(CType):
         if (not entity_code and cc) or entity_code.startswith("*"):
             entity_code = "(%s%s)" % (cc, entity_code)
             cc = ""
-        if not entity_code:
-            entity_code = "()"
         return self.return_type.declaration_code(
             "%s%s(%s)%s" % (cc, entity_code, arg_decl_code, trailer),
             for_display, dll_linkage, pyrex)