diff options
Diffstat (limited to 'codegen/argtypes.py')
-rw-r--r-- | codegen/argtypes.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/codegen/argtypes.py b/codegen/argtypes.py index b35f6ef9..46e868e2 100644 --- a/codegen/argtypes.py +++ b/codegen/argtypes.py @@ -79,14 +79,14 @@ class ArgType: def write_param(self, ptype, pname, pdflt, pnull, info): """Add code to the WrapperInfo instance to handle parameter.""" - raise RuntimeError, "write_param not implemented for %s" % \ - self.__class__.__name__ + raise RuntimeError("write_param not implemented for %s" + % self.__class__.__name__) def write_return(self, ptype, ownsreturn, info): """Adds a variable named ret of the return type to info.varlist, and add any required code to info.codeafter to convert the return value to a python object.""" - raise RuntimeError, "write_return not implemented for %s" % \ - self.__class__.__name__ + raise RuntimeError("write_return not implemented for %s" + % self.__class__.__name__) class NoneArg(ArgType): def write_return(self, ptype, ownsreturn, info): |