summaryrefslogtreecommitdiff
path: root/numpy/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/__init__.py')
-rw-r--r--numpy/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/__init__.py b/numpy/__init__.py
index 1e41dc8bf..9f8e60a07 100644
--- a/numpy/__init__.py
+++ b/numpy/__init__.py
@@ -107,6 +107,8 @@ import sys
import warnings
from ._globals import _NoValue, _CopyMode
+from . import exceptions
+# Note that the following names are imported explicitly for backcompat:
from .exceptions import (
ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning,
TooHardError, AxisError)
@@ -130,7 +132,7 @@ else:
raise ImportError(msg) from e
__all__ = [
- 'ModuleDeprecationWarning', 'VisibleDeprecationWarning',
+ 'exceptions', 'ModuleDeprecationWarning', 'VisibleDeprecationWarning',
'ComplexWarning', 'TooHardError', 'AxisError']
# mapping of {name: (value, deprecation_msg)}