Skip to content

Commit 87c5086

Browse files
committed
Remove checks for long in pure Python code
1 parent 3fdcf8b commit 87c5086

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mkl_random/mklrand.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5332,7 +5332,7 @@ cdef class RandomState:
53325332
cov = np.array(cov)
53335333
if size is None:
53345334
shape = []
5335-
elif isinstance(size, (int, long, np.integer)):
5335+
elif isinstance(size, (int, np.integer)):
53365336
shape = [size]
53375337
else:
53385338
shape = size
@@ -5492,7 +5492,7 @@ cdef class RandomState:
54925492

54935493
if size is None:
54945494
shape = []
5495-
elif isinstance(size, (int, long, np.integer)):
5495+
elif isinstance(size, (int, np.integer)):
54965496
shape = [size]
54975497
else:
54985498
shape = size
@@ -5896,7 +5896,7 @@ cdef class RandomState:
58965896
[3, 4, 5]])
58975897
58985898
"""
5899-
if isinstance(x, (int, long, np.integer)):
5899+
if isinstance(x, (int, np.integer)):
59005900
arr = np.arange(x)
59015901
else:
59025902
arr = np.array(x)

0 commit comments

Comments
 (0)