python-pillow / Pillow

Python Imaging Library (Fork)
https://python-pillow.org
Other
12.33k stars 2.24k forks source link

Remove unnecessary pymode variable #8247

Closed Yay295 closed 3 months ago

Yay295 commented 4 months ago

The mode string can be directly passed to Py_BuildValue() as an "s" value instead of an "S" value where we need to convert it to a Python object ourselves.

radarhere commented 4 months ago

8213 would remove this code altogether.

Yay295 commented 3 months ago

8213 removed this code.