diff options
author | Marten van Kerkwijk <mhvk@astro.utoronto.ca> | 2018-06-14 12:29:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-14 12:29:16 -0400 |
commit | a9ac83cffc5096a0157b9c0ac9795bf7f0a9670b (patch) | |
tree | fc6d63b9f5aec3a1784eb7eead91bdbf5e7eedf5 /numpy/core/numeric.py | |
parent | 249edd2e83d20f469b329ff7b31c2f107e34ba36 (diff) | |
parent | 515215d23c1647c5ae3734502b629cf94c7e2249 (diff) | |
download | numpy-a9ac83cffc5096a0157b9c0ac9795bf7f0a9670b.tar.gz |
Merge pull request #11328 from eric-wieser/misc-numeric-cleanup
MAINT: Misc numeric cleanup
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index 7ade3d224..4ff12dbbd 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -2914,15 +2914,13 @@ True_ = bool_(True) def extend_all(module): - adict = {} - for a in __all__: - adict[a] = 1 + existing = set(__all__) try: mall = getattr(module, '__all__') except AttributeError: mall = [k for k in module.__dict__.keys() if not k.startswith('_')] for a in mall: - if a not in adict: + if a not in existing: __all__.append(a) |