Skip to content

Commit 0e24642

Browse files
Remove additional parentheses
1 parent 01091e4 commit 0e24642

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_datetimemodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6144,7 +6144,7 @@ datetime_datetime_fromisoformat_impl(PyTypeObject *type, PyObject *string)
61446144
goto error;
61456145
}
61466146

6147-
if ((hour == 24) && (month >= 1) && (month <= 12)) {
6147+
if ((hour == 24) && (month >= 1 && month <= 12)) {
61486148
int d_in_month = days_in_month(year, month);
61496149
if (day <= d_in_month) {
61506150
if (minute == 0 && second == 0 && microsecond == 0) {

0 commit comments

Comments
 (0)