@@ -373,22 +373,21 @@ static int PyFT2Font_init(PyFT2Font *self, PyObject *args, PyObject *kwds)
373
373
memset ((void *)&open_args, 0 , sizeof (FT_Open_Args));
374
374
open_args.flags = FT_OPEN_STREAM;
375
375
open_args.stream = &self->stream ;
376
-
377
376
if (fallback_list) {
378
- if (!PyList_Check (fallback_list)) {
379
- PyErr_SetString (PyExc_TypeError, " Fallback list must be a list" );
380
- goto exit ;
381
- }
382
- Py_ssize_t size = PyList_Size (fallback_list);
383
-
384
- // go through fallbacks once to make sure the types are right
385
- for (Py_ssize_t i = 0 ; i < size; ++i) {
386
- // this returns a borrowed reference
387
- PyObject* item = PyList_GetItem (fallback_list, i);
388
- if (!PyObject_IsInstance (item, PyObject_Type (reinterpret_cast <PyObject *>(self)))) {
389
- PyErr_SetString (PyExc_TypeError, " Fallback fonts must be FT2Font objects." );
390
- goto exit ;
391
- }
377
+ if (!PyList_Check (fallback_list)) {
378
+ PyErr_SetString (PyExc_TypeError, " Fallback list must be a list" );
379
+ goto exit ;
380
+ }
381
+ Py_ssize_t size = PyList_Size (fallback_list);
382
+
383
+ // go through fallbacks once to make sure the types are right
384
+ for (Py_ssize_t i = 0 ; i < size; ++i) {
385
+ // this returns a borrowed reference
386
+ PyObject* item = PyList_GetItem (fallback_list, i);
387
+ if (!PyObject_IsInstance (item, PyObject_Type (reinterpret_cast <PyObject *>(self)))) {
388
+ PyErr_SetString (PyExc_TypeError, " Fallback fonts must be FT2Font objects." );
389
+ goto exit ;
390
+ }
392
391
}
393
392
// go through a second time to add them to our lists
394
393
for (Py_ssize_t i = 0 ; i < size; ++i) {
0 commit comments