summaryrefslogtreecommitdiff
path: root/numpy/__init__.py
diff options
context:
space:
mode:
authorDimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>2022-10-08 16:43:25 +0200
committerDimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>2022-10-08 16:47:00 +0200
commit4e36c1bebdfca23f491c874bb4d97d829e381836 (patch)
treebfc7866ab0f947d7cf362fe25f99833890b5a440 /numpy/__init__.py
parent3cf2ca1611ecaf1d13c41075a7025b96e54e3ee3 (diff)
downloadnumpy-4e36c1bebdfca23f491c874bb4d97d829e381836.tar.gz
DOC: Remove documentation specific to Python 2
Diffstat (limited to 'numpy/__init__.py')
-rw-r--r--numpy/__init__.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/numpy/__init__.py b/numpy/__init__.py
index 66b8e3eca..3260046d6 100644
--- a/numpy/__init__.py
+++ b/numpy/__init__.py
@@ -200,10 +200,9 @@ else:
_msg = (
"`np.{n}` is a deprecated alias for `np.compat.{n}`. "
- "To silence this warning, use `np.compat.{n}` by itself. "
- "In the likely event your code does not need to work on Python 2 "
- "you can use the builtin `{n2}` for which `np.compat.{n}` is itself "
- "an alias. Doing this will not modify any behaviour and is safe. "
+ "To silence this warning, use `np.compat.{n}` by itself, or "
+ "the builtin `{n2}` for which `np.compat.{n}` is itself an "
+ "alias. Doing this will not modify any behaviour and is safe. "
"{extended_msg}\n"
"Deprecated in NumPy 1.20; for more details and guidance: "
"https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations")