Skip to content

Commit 84a8e95

Browse files
committed
Reuse return value from PySet_Discard
1 parent 95198ab commit 84a8e95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Python/import.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ _PyImport_ClearLazyModules(PyInterpreterState *interp)
287287
int
288288
_PyImport_DiscardLazyModule(PyInterpreterState *interp, PyObject *name)
289289
{
290-
return PySet_Discard(LAZY_MODULES(interp), name) < 0 ? -1 : 0;
290+
return PySet_Discard(LAZY_MODULES(interp), name);
291291
}
292292

293293
static PyObject *

0 commit comments

Comments
 (0)