Skip to content

Commit 2219e03

Browse files
Removed some all import crud
1 parent 1ce79e3 commit 2219e03

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

mkl_fft/_pydfti.pyx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,20 @@
2424
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2525
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626

27-
from __future__ import absolute_import
27+
#cython: language_level=3
28+
29+
# imports
2830
import numpy as np
29-
cimport numpy as cnp
30-
try:
31-
from numpy.core.multiarray_tests import internal_overlap
32-
except ImportError:
33-
# Module has been renamed in NumPy 1.15
34-
from numpy.core._multiarray_tests import internal_overlap
31+
from numpy.core._multiarray_tests import internal_overlap
32+
from threading import local as threading_local
3533

34+
# cimports
35+
cimport numpy as cnp
3636
from libc.string cimport memcpy
3737
cimport cpython.pycapsule
3838
from cpython.exc cimport (PyErr_Occurred, PyErr_Clear)
3939
from cpython.mem cimport (PyMem_Malloc, PyMem_Free)
4040

41-
from threading import local as threading_local
4241

4342
# thread-local storage
4443
_tls = threading_local()

0 commit comments

Comments
 (0)