Skip to content

Conversation

@radarhere
Copy link
Member

Pillow/src/_imagingft.c

Lines 924 to 927 in 27c1bb2

image = PyObject_CallFunction(fill, "ii", width, height);
if (image == Py_None) {
PyMem_Del(glyph_info);
return Py_BuildValue("N(ii)", image, 0, 0);

The scenario where the Python fill() function might return None began in #7247. However, when it was removed in #7645, the C code to handle it stayed. This PR now removes that code.

@hugovk hugovk merged commit 026181e into python-pillow:main Oct 7, 2024
@radarhere radarhere deleted the imagingft_unused branch October 7, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants