summaryrefslogtreecommitdiff
path: root/numpy/lib/index_tricks.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2017-08-05 12:09:23 -0500
committerGitHub <noreply@github.com>2017-08-05 12:09:23 -0500
commitbfe43b26969231cfe8196868280c07f0c0aa8f50 (patch)
tree88ad7478e033ce5980a365a479e22b78ba1cecaa /numpy/lib/index_tricks.py
parent5ab02b15de72fa00d785f49c62466fe048264cc4 (diff)
parent2b781f8967488dc007f8f0a1e6a7f49208788d12 (diff)
downloadnumpy-bfe43b26969231cfe8196868280c07f0c0aa8f50.tar.gz
Merge pull request #9517 from charris/rebase-9508
MAINT/DOC: Use builtin when np.{x} is builtins.{x}.
Diffstat (limited to 'numpy/lib/index_tricks.py')
-rw-r--r--numpy/lib/index_tricks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py
index 950f77175..650b37f25 100644
--- a/numpy/lib/index_tricks.py
+++ b/numpy/lib/index_tricks.py
@@ -842,7 +842,7 @@ def diag_indices(n, ndim=2):
And use it to set the diagonal of an array of zeros to 1:
- >>> a = np.zeros((2, 2, 2), dtype=np.int)
+ >>> a = np.zeros((2, 2, 2), dtype=int)
>>> a[d3] = 1
>>> a
array([[[1, 0],