summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Waygood <Alex.Waygood@Gmail.com>2023-03-02 16:45:01 (GMT)
committerGitHub <noreply@github.com>2023-03-02 16:45:01 (GMT)
commit47cc6fac4b871f97a9fab30cea4b6465571db2fb (patch)
tree91250f0b2757d883c47754aadd216131dfa0c971
parenta8f9a82881cf925107b39d2bd452ab9dacc99157 (diff)
downloadcpython-47cc6fac4b871f97a9fab30cea4b6465571db2fb.zip
cpython-47cc6fac4b871f97a9fab30cea4b6465571db2fb.tar.gz
cpython-47cc6fac4b871f97a9fab30cea4b6465571db2fb.tar.bz2
[3.10] Fix typos in documentation and comments (GH-102374) (#102377)
Fix typos in documentation and comments (GH-102374) Found some duplicate `to`s in the documentation and some code comments and fixed them. [Misc/NEWS.d/3.12.0a1.rst](https://github.com/python/cpython/blob/ed55c69ebd74178115cd8b080f7f8e7588cd5fda/Misc/NEWS.d/3.12.0a1.rst) also contains two duplicate `to`s, but I wasn't sure if it's ok to touch that file. Looks auto generated. I'm happy to amend the PR if requested. :) Automerge-Triggered-By: GH:AlexWaygood Co-authored-by: Michael K <michael-k@users.noreply.github.com>
-rw-r--r--Doc/library/sqlite3.rst2
-rw-r--r--Lib/zoneinfo/_zoneinfo.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index dc8a48b..509c4a8 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -72,7 +72,7 @@ including `cursors`_ and `transactions`_.
First, we need to create a new database and open
a database connection to allow :mod:`!sqlite3` to work with it.
-Call :func:`sqlite3.connect` to to create a connection to
+Call :func:`sqlite3.connect` to create a connection to
the database :file:`tutorial.db` in the current working directory,
implicitly creating it if it does not exist:
diff --git a/Lib/zoneinfo/_zoneinfo.py b/Lib/zoneinfo/_zoneinfo.py
index de68380..eede15b 100644
--- a/Lib/zoneinfo/_zoneinfo.py
+++ b/Lib/zoneinfo/_zoneinfo.py
@@ -302,7 +302,7 @@ class ZoneInfo(tzinfo):
# difference between utcoffset() and the "standard" offset, but
# the "base offset" and "DST offset" are not encoded in the file;
# we can infer what they are from the isdst flag, but it is not
- # sufficient to to just look at the last standard offset, because
+ # sufficient to just look at the last standard offset, because
# occasionally countries will shift both DST offset and base offset.
typecnt = len(isdsts)