summaryrefslogtreecommitdiff
path: root/numpy/random/mtrand.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/random/mtrand.pyx')
-rw-r--r--numpy/random/mtrand.pyx4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/random/mtrand.pyx b/numpy/random/mtrand.pyx
index ecbd8401a..f1d45668e 100644
--- a/numpy/random/mtrand.pyx
+++ b/numpy/random/mtrand.pyx
@@ -3704,7 +3704,7 @@ cdef class RandomState:
cov = np.array(cov)
if size is None:
shape = []
- elif isinstance(size, (int, long, np.integer)):
+ elif isinstance(size, (int, np.integer)):
shape = [size]
else:
shape = size
@@ -4134,7 +4134,7 @@ cdef class RandomState:
[3, 4, 5]])
"""
- if isinstance(x, (int, long, np.integer)):
+ if isinstance(x, (int, np.integer)):
arr = np.arange(x)
self.shuffle(arr)
return arr