Skip to content

Commit 8bc783f

Browse files
author
Stefan Behnel
committed
Clean up code and formatting a little.
1 parent 0736226 commit 8bc783f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Objects/typeobject.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2966,12 +2966,13 @@ _PyType_LookupUncached(PyTypeObject *type, PyObject *name, int *error)
29662966
mro = type->tp_mro;
29672967

29682968
if (mro == NULL) {
2969-
if ((type->tp_flags & Py_TPFLAGS_READYING) == 0 &&
2970-
PyType_Ready(type) < 0) {
2971-
*error = -1;
2972-
return NULL;
2969+
if ((type->tp_flags & Py_TPFLAGS_READYING) == 0) {
2970+
if (PyType_Ready(type) < 0) {
2971+
*error = -1;
2972+
return NULL;
2973+
}
2974+
mro = type->tp_mro;
29732975
}
2974-
mro = type->tp_mro;
29752976
if (mro == NULL) {
29762977
*error = 1;
29772978
return NULL;

0 commit comments

Comments
 (0)