https://github.com/python/cpython/commit/74f897e25e45a45a59e38484993d64269064763e commit: 74f897e25e45a45a59e38484993d64269064763e branch: main author: Stan Ulbrych <89152624+stanfromirel...@users.noreply.github.com> committer: serhiy-storchaka <storch...@gmail.com> date: 2025-05-09T21:32:25+03:00 summary:
Remove unused code from _pydatetime.py (GH-133768) It should have been removed in PR #7549 (bcb032e4acdebc043a7659a06e6037fe71020860). files: M Lib/_pydatetime.py diff --git a/Lib/_pydatetime.py b/Lib/_pydatetime.py index e3db1b52b1159b..9448f2a0a5f462 100644 --- a/Lib/_pydatetime.py +++ b/Lib/_pydatetime.py @@ -2089,7 +2089,6 @@ def _local_timezone(self): else: ts = (self - _EPOCH) // timedelta(seconds=1) localtm = _time.localtime(ts) - local = datetime(*localtm[:6]) # Extract TZ data gmtoff = localtm.tm_gmtoff zone = localtm.tm_zone _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com