diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-04-20 14:00:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-20 14:00:41 -0700 |
commit | 32955299b4b102138220150e2925de4ce7f17c82 (patch) | |
tree | 93c7661d9cd32b3e80c0df63029810ec497ea4d3 /Lib | |
parent | b221107d32370670905fefb569b3104748f92afe (diff) | |
download | cpython-git-32955299b4b102138220150e2925de4ce7f17c82.tar.gz |
Spelling fixes to docs, docstrings, and comments (GH-6374)
(cherry picked from commit 61f82e0e337f971da57f8f513abfe693edf95aa5)
Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/_strptime.py | 2 | ||||
-rw-r--r-- | Lib/idlelib/NEWS.txt | 2 | ||||
-rw-r--r-- | Lib/sqlite3/test/dbapi.py | 2 | ||||
-rw-r--r-- | Lib/test/_test_multiprocessing.py | 2 | ||||
-rw-r--r-- | Lib/test/test__xxsubinterpreters.py | 2 | ||||
-rw-r--r-- | Lib/test/test_socket.py | 2 | ||||
-rw-r--r-- | Lib/test/test_strptime.py | 2 | ||||
-rw-r--r-- | Lib/typing.py | 2 |
8 files changed, 8 insertions, 8 deletions
diff --git a/Lib/_strptime.py b/Lib/_strptime.py index 1be04850ac..c8f2f94e55 100644 --- a/Lib/_strptime.py +++ b/Lib/_strptime.py @@ -463,7 +463,7 @@ def _strptime(data_string, format="%a %b %d %H:%M:%S %Y"): z = z[:3] + z[4:] if len(z) > 5: if z[5] != ':': - msg = f"Unconsistent use of : in {found_dict['z']}" + msg = f"Inconsistent use of : in {found_dict['z']}" raise ValueError(msg) z = z[:5] + z[6:] hours = int(z[1:3]) diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt index c4aab2ee78..c8b0caabd2 100644 --- a/Lib/idlelib/NEWS.txt +++ b/Lib/idlelib/NEWS.txt @@ -39,7 +39,7 @@ bpo-31860: The font sample in the settings dialog is now editable. Edits persist while IDLE remains open. Patch by Serhiy Storchake and Terry Jan Reedy. -bpo-31858: Restrict shell prompt manipulaton to the shell. +bpo-31858: Restrict shell prompt manipulation to the shell. Editor and output windows only see an empty last prompt line. This simplifies the code and fixes a minor bug when newline is inserted. Sys.ps1, if present, is read on Shell start-up, but is not set or changed. diff --git a/Lib/sqlite3/test/dbapi.py b/Lib/sqlite3/test/dbapi.py index 5332975e0a..7c259d2af4 100644 --- a/Lib/sqlite3/test/dbapi.py +++ b/Lib/sqlite3/test/dbapi.py @@ -161,7 +161,7 @@ class ConnectionTests(unittest.TestCase): self.cx.in_transaction = True def CheckOpenWithPathLikeObject(self): - """ Checks that we can succesfully connect to a database using an object that + """ Checks that we can successfully connect to a database using an object that is PathLike, i.e. has __fspath__(). """ self.addCleanup(unlink, TESTFN) class Path: diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index c6a1f5ca90..aa8eb75641 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -1104,7 +1104,7 @@ class _TestQueue(BaseTestCase): q = SafeQueue(ctx=multiprocessing.get_context()) q.put(not_serializable_obj) - # Verify that q is still functionning correctly + # Verify that q is still functioning correctly q.put(True) self.assertTrue(q.get(timeout=1.0)) diff --git a/Lib/test/test__xxsubinterpreters.py b/Lib/test/test__xxsubinterpreters.py index 397d359931..4ef77716c6 100644 --- a/Lib/test/test__xxsubinterpreters.py +++ b/Lib/test/test__xxsubinterpreters.py @@ -1001,7 +1001,7 @@ class ChannelTests(TestBase): interpreters.channel_recv(cid) def test_drop_partially(self): - # XXX Is partial close too wierd/confusing? + # XXX Is partial close too weird/confusing? cid = interpreters.channel_create() interpreters.channel_send(cid, None) interpreters.channel_recv(cid) diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index bff1dc2d06..44501d922a 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -5948,7 +5948,7 @@ class LinuxKernelCryptoAPI(unittest.TestCase): @unittest.skipUnless(sys.platform.startswith("win"), "requires Windows") class TestMSWindowsTCPFlags(unittest.TestCase): knownTCPFlags = { - # avaliable since long time ago + # available since long time ago 'TCP_MAXSEG', 'TCP_NODELAY', # available starting with Windows 10 1607 diff --git a/Lib/test/test_strptime.py b/Lib/test/test_strptime.py index af71008bec..de2773f6aa 100644 --- a/Lib/test/test_strptime.py +++ b/Lib/test/test_strptime.py @@ -363,7 +363,7 @@ class StrptimeTests(unittest.TestCase): _strptime._strptime("-01:30:30:123456", "%z") with self.assertRaises(ValueError) as err: _strptime._strptime("-01:3030", "%z") - self.assertEqual("Unconsistent use of : in -01:3030", str(err.exception)) + self.assertEqual("Inconsistent use of : in -01:3030", str(err.exception)) def test_timezone(self): # Test timezone directives. diff --git a/Lib/typing.py b/Lib/typing.py index d45502ffee..83296073b9 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -732,7 +732,7 @@ class _GenericAlias(_Final, _root=True): return (self.__origin__,) def __getattr__(self, attr): - # We are carefull for copy and pickle. + # We are careful for copy and pickle. # Also for simplicity we just don't relay all dunder names if '__origin__' in self.__dict__ and not _is_dunder(attr): return getattr(self.__origin__, attr) |