Skip to content

Commit

Permalink
Fix Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TizzySaurus committed Jun 17, 2023
1 parent b3890f4 commit 5dc3d69
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion Lib/_pydatetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -1888,7 +1888,6 @@ def fromisoformat(cls, date_string):
else:
if became_next_day:
year, month, day = date_components

# Only wrap day/month when it was previously valid
if month <= 12 and day <= (days_in_month := _days_in_month(year, month)):
# Calculate midnight of the next day
Expand Down
1 change: 0 additions & 1 deletion Modules/_datetimemodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -5521,7 +5521,6 @@ datetime_fromisoformat(PyObject *cls, PyObject *dtstr)
goto invalid_iso_midnight;
}
}

}
PyObject *dt = new_datetime_subclass_ex(year, month, day, hour, minute,
second, microsecond, tzinfo, cls);
Expand Down

0 comments on commit 5dc3d69

Please sign in to comment.