File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -6706,7 +6706,6 @@ type_ready_mro(PyTypeObject *type)
6706
6706
and static builtin types must have static builtin bases. */
6707
6707
if (!(type -> tp_flags & Py_TPFLAGS_HEAPTYPE )) {
6708
6708
assert (type -> tp_flags & Py_TPFLAGS_IMMUTABLETYPE );
6709
- int isbuiltin = type -> tp_flags & _Py_TPFLAGS_STATIC_BUILTIN ;
6710
6709
PyObject * mro = type -> tp_mro ;
6711
6710
Py_ssize_t n = PyTuple_GET_SIZE (mro );
6712
6711
for (Py_ssize_t i = 0 ; i < n ; i ++ ) {
@@ -6718,7 +6717,8 @@ type_ready_mro(PyTypeObject *type)
6718
6717
type -> tp_name , base -> tp_name );
6719
6718
return -1 ;
6720
6719
}
6721
- assert (!isbuiltin || (base -> tp_flags & _Py_TPFLAGS_STATIC_BUILTIN ));
6720
+ assert (!(type -> tp_flags & _Py_TPFLAGS_STATIC_BUILTIN ) ||
6721
+ (base -> tp_flags & _Py_TPFLAGS_STATIC_BUILTIN ));
6722
6722
}
6723
6723
}
6724
6724
return 0 ;
You can’t perform that action at this time.
0 commit comments