]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove unused code from _pydatetime.py (GH-133768)
authorStan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Fri, 9 May 2025 18:32:25 +0000 (19:32 +0100)
committerGitHub <noreply@github.com>
Fri, 9 May 2025 18:32:25 +0000 (21:32 +0300)
It should have been removed in PR #7549 (bcb032e4acdebc043a7659a06e6037fe71020860).

Lib/_pydatetime.py

index e3db1b52b1159bf1917de59d4aefb42425d8add7..9448f2a0a5f462f66a965a149605741264d27c16 100644 (file)
@@ -2089,7 +2089,6 @@ class datetime(date):
         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