From 03e08148eb303c7799a18db78b8087f78e5cc2fc Mon Sep 17 00:00:00 2001 From: mattip Date: Thu, 2 Aug 2018 18:23:54 -0700 Subject: MAINT: remove code that codecov pointed out is superflous --- numpy/core/numeric.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'numpy/core/numeric.py') diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index e5570791a..655548bb0 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -2919,10 +2919,7 @@ True_ = bool_(True) def extend_all(module): existing = set(__all__) - try: - mall = getattr(module, '__all__') - except AttributeError: - mall = [k for k in module.__dict__.keys() if not k.startswith('_')] + mall = getattr(module, '__all__') for a in mall: if a not in existing: __all__.append(a) -- cgit v1.2.1 From bcdd3e7e11b7bce4ed77f9f45fffa584c0f8438a Mon Sep 17 00:00:00 2001 From: "Michael Hirsch, Ph.D" Date: Tue, 28 Aug 2018 23:27:25 -0400 Subject: DOC, MAINT: Fixes for errstate() and README.md documentation. (#11814) * DOC: errstate() and AppVeyor badge link Removes outdated references to Python 2.5, which hasn't been supported for several releases. Corrected README.rst AppVeyor badge link. * revert appveyor badge link to charris --- numpy/core/numeric.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'numpy/core/numeric.py') diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index e5570791a..6c9baef0a 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -2850,16 +2850,11 @@ class errstate(object): Notes ----- - The ``with`` statement was introduced in Python 2.5, and can only be used - there by importing it: ``from __future__ import with_statement``. In - earlier Python versions the ``with`` statement is not available. - For complete documentation of the types of floating-point exceptions and treatment options, see `seterr`. Examples -------- - >>> from __future__ import with_statement # use 'with' in Python 2.5 >>> olderr = np.seterr(all='ignore') # Set error handling to known state. >>> np.arange(3) / 0. -- cgit v1.2.1