[Numpy-svn] [numpy/numpy] ec6b89: BUG: mode kwargs passed as unicode to np.pad raise...

GitHub noreply at github.com
Sun Jan 31 17:14:16 EST 2016


  Branch: refs/heads/maintenance/1.11.x
  Home:   https://github.com/numpy/numpy
  Commit: ec6b894fefec038ee7daa45c4d10babc837eed7a
      https://github.com/numpy/numpy/commit/ec6b894fefec038ee7daa45c4d10babc837eed7a
  Author: bertrand <bertrand.l3f at gmail.com>
  Date:   2016-01-31 (Sun, 31 Jan 2016)

  Changed paths:
    M numpy/lib/arraypad.py
    M numpy/lib/tests/test_arraypad.py

  Log Message:
  -----------
  BUG: mode kwargs passed as unicode to np.pad raises an exception

isinstance(mode, str) is False in python2.7 when mode is of unicode
type, and mode is then mistakenly assumed to be a callable. See #7112


  Commit: a599178c700228b9b6a3428f06d4c92ab25f01da
      https://github.com/numpy/numpy/commit/a599178c700228b9b6a3428f06d4c92ab25f01da
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2016-01-31 (Sun, 31 Jan 2016)

  Changed paths:
    M numpy/lib/arraypad.py
    M numpy/lib/tests/test_arraypad.py

  Log Message:
  -----------
  Merge pull request #7153 from charris/backport-7152

Backport 7152,BUG: mode kwargs passed as unicode to np.pad raises an exception


Compare: https://github.com/numpy/numpy/compare/1593c03745ee...a599178c7002


More information about the Numpy-svn mailing list