Commit ca66b709 authored by Stefan Behnel's avatar Stefan Behnel

Minor code cleanup

parent d11dfd28
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
DEF _buffer_format_string_len = 255 DEF _buffer_format_string_len = 255
cimport cpython.buffer as pybuf cimport cpython.buffer as pybuf
from cpython.ref cimport Py_INCREF, Py_XDECREF from cpython.ref cimport Py_INCREF
from cpython.mem cimport PyObject_Malloc, PyObject_Free from cpython.mem cimport PyObject_Malloc, PyObject_Free
from cpython.object cimport PyObject, PyTypeObject from cpython.object cimport PyObject, PyTypeObject
from cpython.type cimport type from cpython.type cimport type
...@@ -171,7 +171,7 @@ cdef extern from "numpy/arrayobject.h": ...@@ -171,7 +171,7 @@ cdef extern from "numpy/arrayobject.h":
ctypedef class numpy.dtype [object PyArray_Descr]: ctypedef class numpy.dtype [object PyArray_Descr]:
# Use PyDataType_* macros when possible, however there are no macros # Use PyDataType_* macros when possible, however there are no macros
# for accessing some of the fields, so some are defined. # for accessing some of the fields, so some are defined.
cdef PyTypeObject* typeobj; cdef PyTypeObject* typeobj
cdef char kind cdef char kind
cdef char type cdef char type
# Numpy sometimes mutates this without warning (e.g. it'll # Numpy sometimes mutates this without warning (e.g. it'll
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment