[Python-checkins] Fix typo (GH-23019)
miss-islington
webhook-mailer at python.org
Wed Feb 3 16:48:26 EST 2021
https://github.com/python/cpython/commit/2603d77a6b3200f08b890bd9bb4dc821970d68fe
commit: 2603d77a6b3200f08b890bd9bb4dc821970d68fe
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-02-03T13:48:22-08:00
summary:
Fix typo (GH-23019)
Fixed possible typo in comment
(cherry picked from commit bfe544d2f2c2e7a7c03a764bed3276a1e27a0f5c)
Co-authored-by: Harry <harry.lees at gmail.com>
files:
M Lib/datetime.py
diff --git a/Lib/datetime.py b/Lib/datetime.py
index e508d996fb1ed..23d2bf0918145 100644
--- a/Lib/datetime.py
+++ b/Lib/datetime.py
@@ -2358,7 +2358,7 @@ def _name_from_offset(delta):
# This is again a requirement for a sane tzinfo class.
#
# 4. (x+k).s = x.s
-# This follows from #2, and that datimetimetz+timedelta preserves tzinfo.
+# This follows from #2, and that datetime.timetz+timedelta preserves tzinfo.
#
# 5. (x+k).n = x.n + k
# Again follows from how arithmetic is defined.
More information about the Python-checkins
mailing list