mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 01:34:24 +03:00
Restablishing old changes
This commit is contained in:
parent
450a068ccb
commit
b170c5627e
|
@ -103,7 +103,7 @@ getfont(PyObject* self_, PyObject* args, PyObject* kw)
|
||||||
int size;
|
int size;
|
||||||
int index = 0;
|
int index = 0;
|
||||||
unsigned char* encoding;
|
unsigned char* encoding;
|
||||||
unsigned char** file_like;
|
unsigned char* file_like;
|
||||||
int file_like_size = 0;
|
int file_like_size = 0;
|
||||||
static char* kwlist[] = {
|
static char* kwlist[] = {
|
||||||
"filename", "size", "index", "encoding", "file_like", "file_like_size", NULL
|
"filename", "size", "index", "encoding", "file_like", "file_like_size", NULL
|
||||||
|
@ -111,7 +111,7 @@ getfont(PyObject* self_, PyObject* args, PyObject* kw)
|
||||||
|
|
||||||
if (!PyArg_ParseTupleAndKeywords(args, kw, "eti|isz*i", kwlist,
|
if (!PyArg_ParseTupleAndKeywords(args, kw, "eti|isz*i", kwlist,
|
||||||
Py_FileSystemDefaultEncoding, &filename,
|
Py_FileSystemDefaultEncoding, &filename,
|
||||||
&size, &index, &encoding, file_like,
|
&size, &index, &encoding, &file_like,
|
||||||
&file_like_size))
|
&file_like_size))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user