summaryrefslogtreecommitdiff
path: root/numpy/lib/utils.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2020-03-18 16:45:11 +0000
committerEric Wieser <wieser.eric@gmail.com>2020-03-18 16:52:48 +0000
commit6846925b31c752b97d7de0b2a76308e22b6264d5 (patch)
tree056a3f1826b21ae340a3d6d08fc91c2dcdd8a682 /numpy/lib/utils.py
parent20f22d849002d80485787adeb8a7340dab159f94 (diff)
downloadnumpy-6846925b31c752b97d7de0b2a76308e22b6264d5.tar.gz
MAINT: remove useless `global` statements
`global` is only needed if a variable appears on the left of an assignment. These variables do not. Most suffer from the misconception that `var[x] = y` requires `var` to be global, but it does not.
Diffstat (limited to 'numpy/lib/utils.py')
-rw-r--r--numpy/lib/utils.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/numpy/lib/utils.py b/numpy/lib/utils.py
index f81b4e6e4..f233c7240 100644
--- a/numpy/lib/utils.py
+++ b/numpy/lib/utils.py
@@ -832,7 +832,6 @@ def _lookfor_generate_cache(module, import_modules, regenerate):
or newly generated.
"""
- global _lookfor_caches
# Local import to speed up numpy's import time.
import inspect