summaryrefslogtreecommitdiff
path: root/numpy/fft/helper.py
diff options
context:
space:
mode:
authorMichael Droettboom <mdboom@gmail.com>2018-03-20 23:09:40 -0400
committerNathaniel J. Smith <njs@pobox.com>2018-03-20 20:09:40 -0700
commit3629e3986333ecdf394924e53265e0d1061e928d (patch)
treeb58b414b533a19c49f7a23759549aee2aab4231e /numpy/fft/helper.py
parent517f4c0749f83488d25493ccea62b91caa03c2d6 (diff)
downloadnumpy-3629e3986333ecdf394924e53265e0d1061e928d.tar.gz
Use dummy_threading on platforms that don't support threading (#10773)
Diffstat (limited to 'numpy/fft/helper.py')
-rw-r--r--numpy/fft/helper.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/fft/helper.py b/numpy/fft/helper.py
index 1a1266e12..729121f31 100644
--- a/numpy/fft/helper.py
+++ b/numpy/fft/helper.py
@@ -5,7 +5,10 @@ Discrete Fourier Transforms - helper.py
from __future__ import division, absolute_import, print_function
import collections
-import threading
+try:
+ import threading
+except ImportError:
+ import dummy_threading as threading
from numpy.compat import integer_types
from numpy.core import integer, empty, arange, asarray, roll