summaryrefslogtreecommitdiff
path: root/numpy/random/_common.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/random/_common.pyx')
-rw-r--r--numpy/random/_common.pyx4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/random/_common.pyx b/numpy/random/_common.pyx
index 6d77aed03..19fb34d4d 100644
--- a/numpy/random/_common.pyx
+++ b/numpy/random/_common.pyx
@@ -25,11 +25,11 @@ cdef uint64_t MAXSIZE = <uint64_t>sys.maxsize
cdef object benchmark(bitgen_t *bitgen, object lock, Py_ssize_t cnt, object method):
"""Benchmark command used by BitGenerator"""
cdef Py_ssize_t i
- if method==u'uint64':
+ if method=='uint64':
with lock, nogil:
for i in range(cnt):
bitgen.next_uint64(bitgen.state)
- elif method==u'double':
+ elif method=='double':
with lock, nogil:
for i in range(cnt):
bitgen.next_double(bitgen.state)