summaryrefslogtreecommitdiff
path: root/numpy/_import_tools.py
diff options
context:
space:
mode:
authorRobert Kern <robert.kern@gmail.com>2008-06-17 01:11:43 +0000
committerRobert Kern <robert.kern@gmail.com>2008-06-17 01:11:43 +0000
commit70974af863b99d49d9a1cf947afc019976e6b8b4 (patch)
tree85d27e1668c4aab8457cdd8a2ea794480348bb66 /numpy/_import_tools.py
parentc331857d8663ecf54bbe88c834755da749e8ab52 (diff)
downloadnumpy-70974af863b99d49d9a1cf947afc019976e6b8b4.tar.gz
When using PackageLoader, do not add subpackage names to __all__.
Diffstat (limited to 'numpy/_import_tools.py')
-rw-r--r--numpy/_import_tools.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/numpy/_import_tools.py b/numpy/_import_tools.py
index 4053057ab..b06fbff7e 100644
--- a/numpy/_import_tools.py
+++ b/numpy/_import_tools.py
@@ -152,7 +152,7 @@ class PackageLoader:
Parameters
----------
- *packges : arg-tuple
+ *packages : arg-tuple
the names (one or more strings) of all the modules one
wishes to load into the top-level namespace.
verbose= : integer
@@ -183,9 +183,6 @@ class PackageLoader:
postpone_import = getattr(info_module,'postpone_import',False)
if (postpone and not global_symbols) \
or (postpone_import and postpone is not None):
- self.log('__all__.append(%r)' % (package_name))
- if '.' not in package_name:
- self.parent_export_names.append(package_name)
continue
old_object = frame.f_locals.get(package_name,None)