summaryrefslogtreecommitdiff
path: root/numpy/random/mtrand.pyx
diff options
context:
space:
mode:
authorKevin Sheppard <kevin.k.sheppard@gmail.com>2019-05-24 21:19:11 +0100
committermattip <matti.picus@gmail.com>2019-05-27 22:58:35 +0300
commit23853d65e5c31f182a405427f580123f214e386e (patch)
tree8221947b3e5cc539fa4b1b30c88041f1ad93655e /numpy/random/mtrand.pyx
parent58c0e72854c3f79d3d165d74f2dc721815a38b57 (diff)
downloadnumpy-23853d65e5c31f182a405427f580123f214e386e.tar.gz
STY: Clean up code
Pep8 fixes Remove unused imports Fix name error
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