File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 24
24
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25
25
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
27
- from __future__ import absolute_import
27
+ #cython: language_level=3
28
+
29
+ # imports
28
30
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
35
33
34
+ # cimports
35
+ cimport numpy as cnp
36
36
from libc .string cimport memcpy
37
37
cimport cpython .pycapsule
38
38
from cpython .exc cimport (PyErr_Occurred , PyErr_Clear )
39
39
from cpython .mem cimport (PyMem_Malloc , PyMem_Free )
40
40
41
- from threading import local as threading_local
42
41
43
42
# thread-local storage
44
43
_tls = threading_local ()
You can’t perform that action at this time.
0 commit comments