diff options
author | Michael Droettboom <mdboom@gmail.com> | 2018-03-20 23:09:40 -0400 |
---|---|---|
committer | Nathaniel J. Smith <njs@pobox.com> | 2018-03-20 20:09:40 -0700 |
commit | 3629e3986333ecdf394924e53265e0d1061e928d (patch) | |
tree | b58b414b533a19c49f7a23759549aee2aab4231e | |
parent | 517f4c0749f83488d25493ccea62b91caa03c2d6 (diff) | |
download | python-numpy-3629e3986333ecdf394924e53265e0d1061e928d.tar.gz python-numpy-3629e3986333ecdf394924e53265e0d1061e928d.tar.bz2 python-numpy-3629e3986333ecdf394924e53265e0d1061e928d.zip |
Use dummy_threading on platforms that don't support threading (#10773)
-rw-r--r-- | numpy/fft/helper.py | 5 |
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 |