summaryrefslogtreecommitdiff
path: root/numpy/core/umath.py
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2020-02-13 09:08:23 +0200
committermattip <matti.picus@gmail.com>2020-02-13 09:11:18 +0200
commit5798ce765184f320c70c5130a515984b17c10f52 (patch)
tree5b2bf8eddf649e457474c23bd7b6a386bc9e0edc /numpy/core/umath.py
parent8bd5dddda46805928bba355a288815831c50c96c (diff)
downloadnumpy-5798ce765184f320c70c5130a515984b17c10f52.tar.gz
BUG, DOC: restore missing import
Diffstat (limited to 'numpy/core/umath.py')
-rw-r--r--numpy/core/umath.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/core/umath.py b/numpy/core/umath.py
index d2f769505..6a5474ffe 100644
--- a/numpy/core/umath.py
+++ b/numpy/core/umath.py
@@ -8,7 +8,10 @@ by importing from the extension module.
from . import _multiarray_umath
from ._multiarray_umath import * # noqa: F403
-from ._multiarray_umath import _UFUNC_API, _add_newdoc_ufunc
+# These imports are needed for backward compatibility,
+# do not change them. issue gh-11862
+# _ones_like is semi-public, on purpose not added to __all__
+from ._multiarray_umath import _UFUNC_API, _add_newdoc_ufunc, _ones_like
__all__ = [
'_UFUNC_API', 'ERR_CALL', 'ERR_DEFAULT', 'ERR_IGNORE', 'ERR_LOG',