Skip to content

Commit

Permalink
bpo-41870: Avoid the test when nargs=0 (pythonGH-22462)
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 authored and Seth Sims committed Oct 18, 2020
1 parent 175ff10 commit a7a1955
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Objects/boolobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ bool_vectorcall(PyObject *type, PyObject * const*args,
assert(PyType_Check(type));
if (nargs) {
ok = PyObject_IsTrue(args[0]);
}
if (ok < 0) {
return NULL;
if (ok < 0) {
return NULL;
}
}
return PyBool_FromLong(ok);
}
Expand Down

0 comments on commit a7a1955

Please sign in to comment.