diff options
author | mattip <matti.picus@gmail.com> | 2018-08-02 18:23:54 -0700 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2018-08-21 20:06:39 +0300 |
commit | 03e08148eb303c7799a18db78b8087f78e5cc2fc (patch) | |
tree | d0b2b953c06e341efe0b0d459dcfefca0e151c5a /numpy/core/numeric.py | |
parent | 872508760a447352a680d89359d1a1b262aec164 (diff) | |
download | numpy-03e08148eb303c7799a18db78b8087f78e5cc2fc.tar.gz |
MAINT: remove code that codecov pointed out is superflous
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 5 |
1 files changed, 1 insertions, 4 deletions
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) |