8000 Remove C code for pre-1.7. · matplotlib/matplotlib@a8c9697 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a8c9697

Browse files
committed
Remove C code for pre-1. 10000 7.
1 parent fc204fa commit a8c9697

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/_backend_gdk.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77

88
#include <pygtk/pygtk.h>
99

10-
// support numpy 1.6 - this macro was renamed and deprecated at once in 1.7
11-
#ifndef NPY_ARRAY_WRITEABLE
12-
#define NPY_ARRAY_WRITEABLE NPY_WRITEABLE
13-
#endif
14-
1510
static PyTypeObject *_PyGdkPixbuf_Type;
1611
#define PyGdkPixbuf_Type (*_PyGdkPixbuf_Type)
1712

@@ -52,15 +47,11 @@ static PyObject *pixbuf_get_pixels_array(PyObject *self, PyObject *args)
5247

5348
/* the array holds a ref to the pixbuf pixels through this wrapper*/
5449
Py_INCREF(py_pixbuf);
55-
#if NPY_API_VERSION >= 0x00000007
5650
if (PyArray_SetBaseObject(array, (PyObject *)py_pixbuf) == -1) {
5751
Py_DECREF(py_pixbuf);
5852
Py_DECREF(array);
5953
return NULL;
6054
}
61-
#else
62-
PyArray_BASE(array) = (PyObject *) py_pixbuf;
63-
#endif
6455
return PyArray_Return(array);
6556
}
6657

0 commit comments

Comments
 (0)
0