mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
remove unused version value
This commit is contained in:
parent
1a11ba662c
commit
e1d0a96404
|
@ -238,17 +238,6 @@ get_on_pixels(PyObject *self, PyObject *args) {
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int
|
||||
setup_module(PyObject *m) {
|
||||
PyObject *d = PyModule_GetDict(m);
|
||||
|
||||
PyObject *version = PyUnicode_FromString("0.1");
|
||||
PyDict_SetItemString(d, "__version", version);
|
||||
Py_XDECREF(version);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static PyMethodDef functions[] = {
|
||||
/* Functions */
|
||||
{"apply", (PyCFunction)apply, METH_VARARGS, NULL},
|
||||
|
@ -270,9 +259,5 @@ PyInit__imagingmorph(void) {
|
|||
|
||||
m = PyModule_Create(&module_def);
|
||||
|
||||
if (setup_module(m) < 0) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return m;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user