From 3655b732bd08022dab8498b44191d6c4049bc7a8 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Thu, 28 Feb 2013 17:23:13 -0700 Subject: 2to3: Apply `raise` fixes. Closes #3077. Replaces the raise Exception, msg: form with raise Exception(msg): --- numpy/f2py/auxfuncs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/f2py') diff --git a/numpy/f2py/auxfuncs.py b/numpy/f2py/auxfuncs.py index a12d92b7e..72af373db 100644 --- a/numpy/f2py/auxfuncs.py +++ b/numpy/f2py/auxfuncs.py @@ -447,7 +447,7 @@ class throw_error: self.mess = mess def __call__(self,var): mess = '\n\n var = %s\n Message: %s\n' % (var,self.mess) - raise F2PYError,mess + raise F2PYError(mess) def l_and(*f): l,l2='lambda v',[] -- cgit v1.2.1