[Numpy-svn] [numpy/numpy] 05a15c: MAINT: Remove uses of the WarningManager class.

GitHub noreply@github....
Tue Jul 16 14:28:19 CDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 05a15c8b621f953607429f3b67e079dfe1b439d6
      https://github.com/numpy/numpy/commit/05a15c8b621f953607429f3b67e079dfe1b439d6
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-07-12 (Fri, 12 Jul 2013)

  Changed paths:
    M numpy/core/tests/test_api.py
    M numpy/core/tests/test_einsum.py
    M numpy/core/tests/test_multiarray.py
    M numpy/core/tests/test_regression.py
    M numpy/lib/tests/test_io.py
    M numpy/lib/utils.py
    M numpy/ma/tests/test_core.py
    M numpy/ma/tests/test_mrecords.py
    M numpy/random/__init__.py
    M numpy/testing/decorators.py
    M numpy/testing/nosetester.py
    M numpy/testing/utils.py

  Log Message:
  -----------
  MAINT: Remove uses of the WarningManager class.

WarningManager was a workaround for the lack of the with statement
in Python versions < 2.6. As those versions are no longer supported
it can be removed.

Deprecation notes are added to WarningManager and WarningMessage, but
to avoid a cascade of messages in third party apps, no warnings are
raised at this time, that can be done later.

Closes #3519.


  Commit: c067c156bf2ffb96d93083e468158ecbc35baba4
      https://github.com/numpy/numpy/commit/c067c156bf2ffb96d93083e468158ecbc35baba4
  Author: Ralf Gommers <ralf.gommers@googlemail.com>
  Date:   2013-07-16 (Tue, 16 Jul 2013)

  Changed paths:
    M numpy/core/tests/test_api.py
    M numpy/core/tests/test_einsum.py
    M numpy/core/tests/test_multiarray.py
    M numpy/core/tests/test_regression.py
    M numpy/lib/tests/test_io.py
    M numpy/lib/utils.py
    M numpy/ma/tests/test_core.py
    M numpy/ma/tests/test_mrecords.py
    M numpy/random/__init__.py
    M numpy/testing/decorators.py
    M numpy/testing/nosetester.py
    M numpy/testing/utils.py

  Log Message:
  -----------
  Merge pull request #3520 from charris/replace-warningmanager

Replace use of WarningManager by warnings.catch_warnings and then deprecate it.


Compare: https://github.com/numpy/numpy/compare/b55f2752140d...c067c156bf2f


More information about the Numpy-svn mailing list