diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-04-08 11:34:24 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-04-08 11:52:32 -0600 |
commit | 011f8a20044a3982b2441cb53876e9689a3f6d0c (patch) | |
tree | c84a165c4b3d10421744785ffe2803bc069b09ea /numpy/_import_tools.py | |
parent | 01aa27a436476d87c4d986a80225d23179eebb44 (diff) | |
download | numpy-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/_import_tools.py')
-rw-r--r-- | numpy/_import_tools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/_import_tools.py b/numpy/_import_tools.py index 9ff9427d0..ba9e021c7 100644 --- a/numpy/_import_tools.py +++ b/numpy/_import_tools.py @@ -337,7 +337,7 @@ class PackageLoaderDebug(PackageLoader): def _execcmd(self,cmdstr): """ Execute command in parent_frame.""" frame = self.parent_frame - print('Executing',`cmdstr`,'...', end=' ') + print('Executing',repr(cmdstr),'...', end=' ') sys.stdout.flush() exec (cmdstr, frame.f_globals,frame.f_locals) print('ok') |