]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-84976: Add back UTC to datetime.__all__ (#104920)
authorShantanu <12621235+hauntsaninja@users.noreply.github.com>
Thu, 25 May 2023 15:18:56 +0000 (08:18 -0700)
committerGitHub <noreply@github.com>
Thu, 25 May 2023 15:18:56 +0000 (11:18 -0400)
gh-84796: Add back UTC to datetime.__all__

This was mistakenly dropped in #103637

Noticed when updating typeshed for Python 3.12

Lib/datetime.py

index bad8beb4f6b026b5c0acb34a218847357ebdbc2f..a33d2d724cb33d25ee591b7e39fb2129d3a4dd9a 100644 (file)
@@ -6,4 +6,4 @@ except ImportError:
     from _pydatetime import __doc__
 
 __all__ = ("date", "datetime", "time", "timedelta", "timezone", "tzinfo",
-           "MINYEAR", "MAXYEAR")
+           "MINYEAR", "MAXYEAR", "UTC")