summaryrefslogtreecommitdiff
path: root/numpy/doc/indexing.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2020-03-26 17:50:20 +0000
committerGitHub <noreply@github.com>2020-03-26 12:50:20 -0500
commit1c58504eec43f9ba18ac835131fed496fb59772d (patch)
tree4ffc786c9cdac81887680aa999ae6dcbd4bd407d /numpy/doc/indexing.py
parent5ff70eb0fd61a39207d5166479507e1b099cb707 (diff)
downloadnumpy-1c58504eec43f9ba18ac835131fed496fb59772d.tar.gz
MAINT: simplify code that assumes str/unicode and int/long are different types (#15816)
Cleanup from the dropping of python 2
Diffstat (limited to 'numpy/doc/indexing.py')
-rw-r--r--numpy/doc/indexing.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/doc/indexing.py b/numpy/doc/indexing.py
index aa84e2b11..6b15a7a9e 100644
--- a/numpy/doc/indexing.py
+++ b/numpy/doc/indexing.py
@@ -372,8 +372,7 @@ exceptions (assigning complex to floats or ints): ::
>>> x[1]
1
>>> x[1] = 1.2j
- <type 'exceptions.TypeError'>: can't convert complex to long; use
- long(abs(z))
+ TypeError: can't convert complex to int
Unlike some of the references (such as array and mask indices)