summaryrefslogtreecommitdiff
path: root/numpy/lib/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/utils.py')
-rw-r--r--numpy/lib/utils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/lib/utils.py b/numpy/lib/utils.py
index d749f00b6..9717a7a8f 100644
--- a/numpy/lib/utils.py
+++ b/numpy/lib/utils.py
@@ -699,11 +699,11 @@ def _lookfor_generate_cache(module, import_modules, regenerate):
# import sub-packages
if import_modules and hasattr(item, '__path__'):
- for pth in item.__path__:
- for mod_path in os.listdir(pth):
- init_py = os.path.join(pth, mod_path, '__init__.py')
+ for pth in item.__path__:
+ for mod_path in os.listdir(pth):
+ init_py = os.path.join(pth, mod_path, '__init__.py')
if not os.path.isfile(init_py):
- continue
+ continue
if _all is not None and mod_path not in _all:
continue
try: