From 011f8a20044a3982b2441cb53876e9689a3f6d0c Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Mon, 8 Apr 2013 11:34:24 -0600 Subject: 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. --- numpy/f2py/cfuncs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/f2py/cfuncs.py') 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 -- cgit v1.2.1