summaryrefslogtreecommitdiff
path: root/numpy/f2py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2011-04-05 15:08:23 -0600
committerCharles Harris <charlesr.harris@gmail.com>2011-04-05 17:38:00 -0600
commite1a9692cc36e4353798a332c834fce7aa6cf9b54 (patch)
treefc499f8768c8d2d99c64547cd1a0b7ae7e6018be /numpy/f2py
parentcfd766456368777bcb0d5edabd360b3aeb02d3f8 (diff)
downloadnumpy-e1a9692cc36e4353798a332c834fce7aa6cf9b54.tar.gz
STY: Update exception styles, trickier ones.
Diffstat (limited to 'numpy/f2py')
-rwxr-xr-xnumpy/f2py/crackfortran.py2
-rwxr-xr-xnumpy/f2py/f2py2e.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py
index 76d7716f9..8299e0aa6 100755
--- a/numpy/f2py/crackfortran.py
+++ b/numpy/f2py/crackfortran.py
@@ -399,7 +399,7 @@ def readfortrancode(ffile,dowithline=show,istop=1):
ll=l
cont=(r is not None)
else:
- raise ValueError,"Flag sourcecodeform must be either 'fix' or 'free': %s"%`sourcecodeform`
+ raise ValueError("Flag sourcecodeform must be either 'fix' or 'free': %s"%`sourcecodeform`)
filepositiontext='Line #%d in %s:"%s"\n\t' % (fin.filelineno()-1,currentfilename,l1)
m=includeline.match(origfinalline)
if m:
diff --git a/numpy/f2py/f2py2e.py b/numpy/f2py/f2py2e.py
index 86c4b31a4..2c9aca25a 100755
--- a/numpy/f2py/f2py2e.py
+++ b/numpy/f2py/f2py2e.py
@@ -378,7 +378,7 @@ def run_main(comline_list):
if postlist[i]['block']!='python module':
if 'python module' not in options:
errmess('Tip: If your original code is Fortran source then you must use -m option.\n')
- raise TypeError,'All blocks must be python module blocks but got %s'%(`postlist[i]['block']`)
+ raise TypeError('All blocks must be python module blocks but got %s'%(`postlist[i]['block']`))
auxfuncs.debugoptions=options['debug']
f90mod_rules.options=options
auxfuncs.wrapfuncs=options['wrapfuncs']