Skip to content

Commit

Permalink
Apply PEP 7 coding style
Browse files Browse the repository at this point in the history
Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
haukex and vstinner committed Apr 11, 2023
1 parent e383418 commit ee5adf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Modules/timemodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,9 @@ static PyObject *
time_sleep_until(PyObject *self, PyObject *deadline_obj)
{
_PyTime_t deadline;
if (_PyTime_FromSecondsObject(&deadline, deadline_obj, _PyTime_ROUND_TIMEOUT))
if (_PyTime_FromSecondsObject(&deadline, deadline_obj, _PyTime_ROUND_TIMEOUT)) {
return NULL;
}
if (deadline < 0) {
PyErr_SetString(PyExc_ValueError,
"sleep_until deadline must be non-negative");
Expand Down

0 comments on commit ee5adf8

Please sign in to comment.