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