summaryrefslogtreecommitdiff
path: root/numpy/f2py/cfuncs.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-04-08 11:34:24 -0600
committerCharles Harris <charlesr.harris@gmail.com>2013-04-08 11:52:32 -0600
commit011f8a20044a3982b2441cb53876e9689a3f6d0c (patch)
treec84a165c4b3d10421744785ffe2803bc069b09ea /numpy/f2py/cfuncs.py
parent01aa27a436476d87c4d986a80225d23179eebb44 (diff)
downloadnumpy-011f8a20044a3982b2441cb53876e9689a3f6d0c.tar.gz
2to3: Apply `repr` fixer.
This replaces python backtics with repr(...). The backtics were mostly used to generate strings for printing with a string format and it is tempting to replace `'%s' % repr(x)` with `'%r' % x`. That would work except where `x` happened to be a tuple or a dictionary but, because it would be significant work to guarantee that and because there are not many places where backtics are used, the safe path is to let the repr replacements stand. Closes #3083.
Diffstat (limited to 'numpy/f2py/cfuncs.py')
-rw-r--r--numpy/f2py/cfuncs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/f2py/cfuncs.py b/numpy/f2py/cfuncs.py
index a83046aa3..755f4203b 100644
--- a/numpy/f2py/cfuncs.py
+++ b/numpy/f2py/cfuncs.py
@@ -1154,7 +1154,7 @@ def append_needs(need,flag=1):
elif need in commonhooks:
n = 'commonhooks'
else:
- errmess('append_needs: unknown need %s\n'%(`need`))
+ errmess('append_needs: unknown need %s\n'%(repr(need)))
return
if need in outneeds[n]: return
if flag:
@@ -1189,7 +1189,7 @@ def append_needs(need,flag=1):
tmp[n].append(need)
return tmp
else:
- errmess('append_needs: expected list or string but got :%s\n'%(`need`))
+ errmess('append_needs: expected list or string but got :%s\n'%(repr(need)))
def get_needs():
global outneeds,needs