Remove a couple of FIXME exceptions

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2008-05-23 19:10:33 +01:00
1 parent a074fd5e77
commit ca9cafaeec
1 file changed
-2
-2
View File
@@ -1055,12 +1055,10 @@ public:
if len(args) == 1 and isinstance(args[0], CppConstructor):
warnings.warn("add_constructor has changed API; see the API documentation",
DeprecationWarning, stacklevel=2)
raise TypeError("FIXME: remove this exception")
constructor = args[0]
elif len(args) == 1 and isinstance(args[0], function.Function):
warnings.warn("add_constructor has changed API; see the API documentation",
DeprecationWarning, stacklevel=2)
raise TypeError("FIXME: remove this exception")
func = args[0]
constructor = CppFunctionAsConstructor(func.function_name, func.parameters)
constructor.module = self.module