diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/_aix_support.py | 2 | ||||
-rw-r--r-- | Lib/ast.py | 2 | ||||
-rw-r--r-- | Lib/asyncio/proactor_events.py | 2 | ||||
-rw-r--r-- | Lib/contextlib.py | 2 | ||||
-rw-r--r-- | Lib/dataclasses.py | 2 | ||||
-rw-r--r-- | Lib/http/server.py | 2 | ||||
-rw-r--r-- | Lib/idlelib/config.py | 2 | ||||
-rw-r--r-- | Lib/idlelib/history.py | 2 | ||||
-rw-r--r-- | Lib/importlib/_bootstrap_external.py | 2 | ||||
-rw-r--r-- | Lib/multiprocessing/connection.py | 2 | ||||
-rwxr-xr-x | Lib/platform.py | 4 | ||||
-rw-r--r-- | Lib/plistlib.py | 4 | ||||
-rw-r--r-- | Lib/pstats.py | 2 | ||||
-rwxr-xr-x | Lib/socket.py | 2 | ||||
-rw-r--r-- | Lib/ssl.py | 2 | ||||
-rw-r--r-- | Lib/subprocess.py | 2 | ||||
-rw-r--r-- | Lib/symtable.py | 4 | ||||
-rw-r--r-- | Lib/test/test_descr.py | 2 | ||||
-rw-r--r-- | Lib/turtle.py | 2 | ||||
-rw-r--r-- | Lib/types.py | 2 | ||||
-rw-r--r-- | Lib/unittest/mock.py | 2 |
21 files changed, 24 insertions, 24 deletions
diff --git a/Lib/_aix_support.py b/Lib/_aix_support.py index d27a1e8..1d8482f 100644 --- a/Lib/_aix_support.py +++ b/Lib/_aix_support.py @@ -47,7 +47,7 @@ def aix_platform(): # type: () -> str """ AIX filesets are identified by four decimal values: V.R.M.F. - V (version) and R (release) can be retreived using ``uname`` + V (version) and R (release) can be retrieved using ``uname`` Since 2007, starting with AIX 5.3 TL7, the M value has been included with the fileset bos.rte and represents the Technology Level (TL) of AIX. The F (Fix) value also increases, but is not @@ -1334,7 +1334,7 @@ class _Unparser(NodeVisitor): operator_precedence = self.unop_precedence[operator] with self.require_parens(operator_precedence, node): self.write(operator) - # factor prefixes (+, -, ~) shouldn't be seperated + # factor prefixes (+, -, ~) shouldn't be separated # from the value they belong, (e.g: +1 instead of + 1) if operator_precedence is not _Precedence.FACTOR: self.write(" ") diff --git a/Lib/asyncio/proactor_events.py b/Lib/asyncio/proactor_events.py index 45c11ee..1d9e2fe 100644 --- a/Lib/asyncio/proactor_events.py +++ b/Lib/asyncio/proactor_events.py @@ -221,7 +221,7 @@ class _ProactorReadPipeTransport(_ProactorBasePipeTransport, length = self._pending_data_length self._pending_data_length = -1 if length > -1: - # Call the protocol methode after calling _loop_reading(), + # Call the protocol method after calling _loop_reading(), # since the protocol can decide to pause reading again. self._loop.call_soon(self._data_received, self._data[:length], length) diff --git a/Lib/contextlib.py b/Lib/contextlib.py index eb59461..1a8ef61 100644 --- a/Lib/contextlib.py +++ b/Lib/contextlib.py @@ -224,7 +224,7 @@ class _AsyncGeneratorContextManager(_GeneratorContextManagerBase, # was passed to throw() and later wrapped into a RuntimeError # (see PEP 479 for sync generators; async generators also # have this behavior). But do this only if the exception wrapped - # by the RuntimeError is actully Stop(Async)Iteration (see + # by the RuntimeError is actually Stop(Async)Iteration (see # issue29692). if isinstance(value, (StopIteration, StopAsyncIteration)): if exc.__cause__ is value: diff --git a/Lib/dataclasses.py b/Lib/dataclasses.py index 7973997..95ff392 100644 --- a/Lib/dataclasses.py +++ b/Lib/dataclasses.py @@ -1100,7 +1100,7 @@ def _process_class(cls, init, repr, eq, order, unsafe_hash, frozen, # _dataclass_getstate and _dataclass_setstate are needed for pickling frozen -# classes with slots. These could be slighly more performant if we generated +# classes with slots. These could be slightly more performant if we generated # the code instead of iterating over fields. But that can be a project for # another day, if performance becomes an issue. def _dataclass_getstate(self): diff --git a/Lib/http/server.py b/Lib/http/server.py index e985dfd..4f9b8a1 100644 --- a/Lib/http/server.py +++ b/Lib/http/server.py @@ -704,7 +704,7 @@ class SimpleHTTPRequestHandler(BaseHTTPRequestHandler): # The test for this was added in test_httpserver.py # However, some OS platforms accept a trailingSlash as a filename # See discussion on python-dev and Issue34711 regarding - # parseing and rejection of filenames with a trailing slash + # parsing and rejection of filenames with a trailing slash if path.endswith("/"): self.send_error(HTTPStatus.NOT_FOUND, "File not found") return None diff --git a/Lib/idlelib/config.py b/Lib/idlelib/config.py index 04444a3..5ce5f4a 100644 --- a/Lib/idlelib/config.py +++ b/Lib/idlelib/config.py @@ -16,7 +16,7 @@ to values. For 'main' and 'extensions', user values override default values. For 'highlight' and 'keys', user sections augment the default sections (and must, therefore, have distinct names). -Throughout this module there is an emphasis on returning useable defaults +Throughout this module there is an emphasis on returning usable defaults when a problem occurs in returning a requested configuration value back to idle. This is to allow IDLE to continue to function in spite of errors in the retrieval of config information. When a default is returned instead of diff --git a/Lib/idlelib/history.py b/Lib/idlelib/history.py index 7ce0925..100f505 100644 --- a/Lib/idlelib/history.py +++ b/Lib/idlelib/history.py @@ -29,7 +29,7 @@ class History: text.bind("<<history-next>>", self.history_next) def history_next(self, event): - "Fetch later statement; start with ealiest if cyclic." + "Fetch later statement; start with earliest if cyclic." self.fetch(reverse=False) return "break" diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py index 009b45f..3cbbb80 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -1178,7 +1178,7 @@ class ExtensionFileLoader(FileLoader, _LoaderBasics): return hash(self.name) ^ hash(self.path) def create_module(self, spec): - """Create an unitialized extension module""" + """Create an uninitialized extension module""" module = _bootstrap._call_with_frames_removed( _imp.create_dynamic, spec) _bootstrap._verbose_message('extension module {!r} loaded from {!r}', diff --git a/Lib/multiprocessing/connection.py b/Lib/multiprocessing/connection.py index 510e4b5..1cca66d 100644 --- a/Lib/multiprocessing/connection.py +++ b/Lib/multiprocessing/connection.py @@ -943,7 +943,7 @@ else: return ready # -# Make connection and socket objects sharable if possible +# Make connection and socket objects shareable if possible # if sys.platform == 'win32': diff --git a/Lib/platform.py b/Lib/platform.py index d298a42..02152f6 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -5,7 +5,7 @@ If called from the command line, it prints the platform information concatenated as single string to stdout. The output - format is useable as part of a filename. + format is usable as part of a filename. """ # This module is maintained by Marc-Andre Lemburg <mal@egenix.com>. @@ -169,7 +169,7 @@ def libc_ver(executable=None, lib='', version='', chunksize=16384): Note that the function has intimate knowledge of how different libc versions add symbols to the executable and thus is probably - only useable for executables compiled using gcc. + only usable for executables compiled using gcc. The file is read and scanned in chunks of chunksize bytes. diff --git a/Lib/plistlib.py b/Lib/plistlib.py index 5772efd..3ab71ed 100644 --- a/Lib/plistlib.py +++ b/Lib/plistlib.py @@ -177,8 +177,8 @@ class _PlistParser: return self.root def handle_entity_decl(self, entity_name, is_parameter_entity, value, base, system_id, public_id, notation_name): - # Reject plist files with entity declarations to avoid XML vulnerabilies in expat. - # Regular plist files don't contain those declerations, and Apple's plutil tool does not + # Reject plist files with entity declarations to avoid XML vulnerabilities in expat. + # Regular plist files don't contain those declarations, and Apple's plutil tool does not # accept them either. raise InvalidFileException("XML entity declarations are not supported in plist files") diff --git a/Lib/pstats.py b/Lib/pstats.py index e77459d..8e0743f 100644 --- a/Lib/pstats.py +++ b/Lib/pstats.py @@ -522,7 +522,7 @@ class Stats: class TupleComp: """This class provides a generic function for comparing any two tuples. Each instance records a list of tuple-indices (from most significant - to least significant), and sort direction (ascending or decending) for + to least significant), and sort direction (ascending or descending) for each tuple-index. The compare functions can then be used as the function argument to the system sort() function when a list of tuples need to be sorted in the instances order.""" diff --git a/Lib/socket.py b/Lib/socket.py index fc11eb7..a64ae40 100755 --- a/Lib/socket.py +++ b/Lib/socket.py @@ -13,7 +13,7 @@ socket() -- create a new socket object socketpair() -- create a pair of new socket objects [*] fromfd() -- create a socket object from an open file descriptor [*] send_fds() -- Send file descriptor to the socket. -recv_fds() -- Recieve file descriptors from the socket. +recv_fds() -- Receive file descriptors from the socket. fromshare() -- create a socket object from data received from socket.share() [*] gethostname() -- return the current hostname gethostbyname() -- map a hostname to its IP number @@ -368,7 +368,7 @@ def _ipaddress_match(cert_ipaddress, host_ip): (section 1.7.2 - "Out of Scope"). """ # OpenSSL may add a trailing newline to a subjectAltName's IP address, - # commonly woth IPv6 addresses. Strip off trailing \n. + # commonly with IPv6 addresses. Strip off trailing \n. ip = _inet_paton(cert_ipaddress.rstrip()) return ip == host_ip diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 8203ade..7a9ab5a 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -2086,7 +2086,7 @@ class Popen: try: os.kill(self.pid, sig) except ProcessLookupError: - # Supress the race condition error; bpo-40550. + # Suppress the race condition error; bpo-40550. pass def terminate(self): diff --git a/Lib/symtable.py b/Lib/symtable.py index 98db1e2..922854b 100644 --- a/Lib/symtable.py +++ b/Lib/symtable.py @@ -62,7 +62,7 @@ class SymbolTable: def get_type(self): """Return the type of the symbol table. - The values retuned are 'class', 'module' and + The values returned are 'class', 'module' and 'function'. """ if self._table.type == _symtable.TYPE_MODULE: @@ -245,7 +245,7 @@ class Symbol: return bool(self.__flags & DEF_PARAM) def is_global(self): - """Return *True* if the sysmbol is global. + """Return *True* if the symbol is global. """ return bool(self.__scope in (GLOBAL_IMPLICIT, GLOBAL_EXPLICIT) or (self.__module_scope and self.__flags & DEF_BOUND)) diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 3cb923e..0ff4d02 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -5696,7 +5696,7 @@ class MroTest(unittest.TestCase): def test_incomplete_extend(self): """ - Extending an unitialized type with type->tp_mro == NULL must + Extending an uninitialized type with type->tp_mro == NULL must throw a reasonable TypeError exception, instead of failing with PyErr_BadInternalCall. """ diff --git a/Lib/turtle.py b/Lib/turtle.py index 7d94720..95d55e9 100644 --- a/Lib/turtle.py +++ b/Lib/turtle.py @@ -3826,7 +3826,7 @@ def write_docstringdict(filename="turtle_docstringdict"): default value is turtle_docstringdict Has to be called explicitly, (not used by the turtle-graphics classes) - The docstring dictionary will be written to the Python script <filname>.py + The docstring dictionary will be written to the Python script <filename>.py It is intended to serve as a template for translation of the docstrings into different languages. """ diff --git a/Lib/types.py b/Lib/types.py index c509b24..c665e6f 100644 --- a/Lib/types.py +++ b/Lib/types.py @@ -158,7 +158,7 @@ class DynamicClassAttribute: attributes on the class with the same name. (Enum used this between Python versions 3.4 - 3.9 .) - Subclass from this to use a different method of accessing virtual atributes + Subclass from this to use a different method of accessing virtual attributes and still be treated properly by the inspect module. (Enum uses this since Python 3.10 .) diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index c606715..a4e571a 100644 --- a/Lib/unittest/mock.py +++ b/Lib/unittest/mock.py @@ -2205,7 +2205,7 @@ class AsyncMockMixin(Base): try: result = next(effect) except StopIteration: - # It is impossible to propogate a StopIteration + # It is impossible to propagate a StopIteration # through coroutines because of PEP 479 raise StopAsyncIteration if _is_exception(result): |