summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/random/mtrand/mtrand.pyx5
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/random/mtrand/mtrand.pyx b/numpy/random/mtrand/mtrand.pyx
index c2603543d..748683cc3 100644
--- a/numpy/random/mtrand/mtrand.pyx
+++ b/numpy/random/mtrand/mtrand.pyx
@@ -127,7 +127,10 @@ import_array()
import numpy as np
import operator
import warnings
-from threading import Lock
+try:
+ from threading import Lock
+except ImportError:
+ from dummy_threading import Lock
cdef object cont0_array(rk_state *state, rk_cont0 func, object size,
object lock):