diff options
Diffstat (limited to 'numpy/doc/__init__.py')
-rw-r--r-- | numpy/doc/__init__.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/doc/__init__.py b/numpy/doc/__init__.py index 86d45f618..b6f1fa71c 100644 --- a/numpy/doc/__init__.py +++ b/numpy/doc/__init__.py @@ -4,9 +4,8 @@ import os ref_dir = os.path.join(os.path.dirname(__file__)) -__all__ = [f[:-3] for f in os.listdir(ref_dir) if f.endswith('.py') and - not f.startswith('__')] -__all__.sort() +__all__ = sorted(f[:-3] for f in os.listdir(ref_dir) if f.endswith('.py') and + not f.startswith('__')) for f in __all__: __import__(__name__ + '.' + f) |