[Numpy-svn] [numpy/numpy] 011f8a: 2to3: Apply `repr` fixer.

GitHub noreply at github.com
Mon Apr 8 15:04:12 EDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 011f8a20044a3982b2441cb53876e9689a3f6d0c
      https://github.com/numpy/numpy/commit/011f8a20044a3982b2441cb53876e9689a3f6d0c
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2013-04-08 (Mon, 08 Apr 2013)

  Changed paths:
    M numpy/_import_tools.py
    M numpy/core/records.py
    M numpy/distutils/tests/test_misc_util.py
    M numpy/f2py/auxfuncs.py
    M numpy/f2py/capi_maps.py
    M numpy/f2py/cfuncs.py
    M numpy/f2py/crackfortran.py
    M numpy/f2py/f2py2e.py
    M numpy/f2py/rules.py
    M numpy/f2py/tests/test_array_from_pyobj.py
    M numpy/f2py/tests/test_assumed_shape.py
    M numpy/f2py/tests/test_callback.py
    M numpy/f2py/tests/test_return_character.py
    M numpy/f2py/tests/test_return_complex.py
    M numpy/f2py/tests/test_return_integer.py
    M numpy/f2py/tests/test_return_logical.py
    M numpy/f2py/tests/test_return_real.py
    M numpy/f2py/tests/test_size.py
    M numpy/f2py/use_rules.py
    M numpy/ma/mrecords.py
    M numpy/testing/utils.py
    M tools/py3tool.py

  Log Message:
  -----------
  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.


  Commit: f85bdf48aadf7b5a5f575370b589805fed190a6c
      https://github.com/numpy/numpy/commit/f85bdf48aadf7b5a5f575370b589805fed190a6c
  Author: njsmith <njs at pobox.com>
  Date:   2013-04-08 (Mon, 08 Apr 2013)

  Changed paths:
    M numpy/_import_tools.py
    M numpy/core/records.py
    M numpy/distutils/tests/test_misc_util.py
    M numpy/f2py/auxfuncs.py
    M numpy/f2py/capi_maps.py
    M numpy/f2py/cfuncs.py
    M numpy/f2py/crackfortran.py
    M numpy/f2py/f2py2e.py
    M numpy/f2py/rules.py
    M numpy/f2py/tests/test_array_from_pyobj.py
    M numpy/f2py/tests/test_assumed_shape.py
    M numpy/f2py/tests/test_callback.py
    M numpy/f2py/tests/test_return_character.py
    M numpy/f2py/tests/test_return_complex.py
    M numpy/f2py/tests/test_return_integer.py
    M numpy/f2py/tests/test_return_logical.py
    M numpy/f2py/tests/test_return_real.py
    M numpy/f2py/tests/test_size.py
    M numpy/f2py/use_rules.py
    M numpy/ma/mrecords.py
    M numpy/testing/utils.py
    M tools/py3tool.py

  Log Message:
  -----------
  Merge pull request #3208 from charris/2to3-apply-repr-fixer

2to3: Apply `repr` fixer.


Compare: https://github.com/numpy/numpy/compare/01aa27a43647...f85bdf48aadf


More information about the Numpy-svn mailing list