Skip to content

Commit 5dc3d69

Browse files
committed
Fix Lint
1 parent b3890f4 commit 5dc3d69

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

Lib/_pydatetime.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1888,7 +1888,6 @@ def fromisoformat(cls, date_string):
18881888
else:
18891889
if became_next_day:
18901890
year, month, day = date_components
1891-
18921891
# Only wrap day/month when it was previously valid
18931892
if month <= 12 and day <= (days_in_month := _days_in_month(year, month)):
18941893
# Calculate midnight of the next day

Modules/_datetimemodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5521,7 +5521,6 @@ datetime_fromisoformat(PyObject *cls, PyObject *dtstr)
55215521
goto invalid_iso_midnight;
55225522
}
55235523
}
5524-
55255524
}
55265525
PyObject *dt = new_datetime_subclass_ex(year, month, day, hour, minute,
55275526
second, microsecond, tzinfo, cls);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy