From 8d56c026a5dd724318be005465366d5140fa6fe7 Mon Sep 17 00:00:00 2001 From: Martin Panter Date: Sun, 29 May 2016 04:13:35 +0000 Subject: [PATCH] =?UTF-8?q?Issue=20#27125:=20Fix=20various=20errors=20like?= =?UTF-8?q?=20=E2=80=9Cwill=20[be]=20inherited=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Doc/library/collections.rst | 2 +- Doc/library/multiprocessing.rst | 2 +- Doc/library/os.rst | 2 +- Doc/library/shlex.rst | 3 ++- Doc/library/typing.rst | 2 +- Doc/whatsnew/2.6.rst | 2 +- Lib/collections/__init__.py | 3 ++- Lib/email/message.py | 2 +- Lib/test/test_httplib.py | 4 ++-- Lib/tkinter/tix.py | 2 +- Misc/HISTORY | 4 ++-- Objects/object.c | 2 +- README | 2 +- 13 files changed, 17 insertions(+), 15 deletions(-) diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 8b97b65b1cc..b8f0621d1ae 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -56,7 +56,7 @@ The class can be used to simulate nested scopes and is useful in templating. dictionary is provided so that a new chain always has at least one mapping. The underlying mappings are stored in a list. That list is public and can - accessed or updated using the *maps* attribute. There is no other state. + be accessed or updated using the *maps* attribute. There is no other state. Lookups search the underlying mappings successively until a key is found. In contrast, writes, updates, and deletions only operate on the first mapping. diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index 42049c4c6b4..be6c28ce0c8 100644 --- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -2478,7 +2478,7 @@ the connection.) If authentication is requested but no authentication key is specified then the return value of ``current_process().authkey`` is used (see -:class:`~multiprocessing.Process`). This value will automatically inherited by +:class:`~multiprocessing.Process`). This value will be automatically inherited by any :class:`~multiprocessing.Process` object that the current process creates. This means that (by default) all processes of a multi-process program will share a single authentication key which can be used when setting up connections diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 0ff68574692..e6b6465eb99 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -3486,7 +3486,7 @@ operating system. .. data:: SCHED_RESET_ON_FORK - This flag can OR'ed with any other scheduling policy. When a process with + This flag can be OR'ed with any other scheduling policy. When a process with this flag set forks, its child's scheduling policy and priority are reset to the default. diff --git a/Doc/library/shlex.rst b/Doc/library/shlex.rst index e40a10daa5d..bf543185d4b 100644 --- a/Doc/library/shlex.rst +++ b/Doc/library/shlex.rst @@ -244,7 +244,8 @@ variables which either control lexical analysis or can be used for debugging: This attribute is ``None`` by default. If you assign a string to it, that string will be recognized as a lexical-level inclusion request similar to the ``source`` keyword in various shells. That is, the immediately following token - will opened as a filename and input taken from that stream until EOF, at which + will be opened as a filename and input will + be taken from that stream until EOF, at which point the :meth:`~io.IOBase.close` method of that stream will be called and the input source will again become the original input stream. Source requests may be stacked any number of levels deep. diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 119af88e7e0..6798d9ab599 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -156,7 +156,7 @@ You can use multiple inheritance with :class:`Generic`:: class LinkedList(Sized, Generic[T]): ... -When inheriting from generic classes, some type variables could fixed:: +When inheriting from generic classes, some type variables could be fixed:: from typing import TypeVar, Mapping diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst index 6aadcf05b63..4ab16563e8a 100644 --- a/Doc/whatsnew/2.6.rst +++ b/Doc/whatsnew/2.6.rst @@ -3154,7 +3154,7 @@ Port-Specific Changes: Mac OS X :func:`macostools.touched` function to be removed because it depended on the :mod:`macfs` module. (:issue:`1490190`) -* Many other Mac OS modules have been deprecated and will removed in +* Many other Mac OS modules have been deprecated and will be removed in Python 3.0: :mod:`_builtinSuites`, :mod:`aepack`, diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py index 05eb1709cb7..ebe8ee7a838 100644 --- a/Lib/collections/__init__.py +++ b/Lib/collections/__init__.py @@ -850,7 +850,8 @@ class ChainMap(MutableMapping): to create a single, updateable view. The underlying mappings are stored in a list. That list is public and can - accessed or updated using the *maps* attribute. There is no other state. + be accessed or updated using the *maps* attribute. There is no other + state. Lookups search the underlying mappings successively until a key is found. In contrast, writes, updates, and deletions only operate on the first diff --git a/Lib/email/message.py b/Lib/email/message.py index a892012c3fc..aefaf57d00e 100644 --- a/Lib/email/message.py +++ b/Lib/email/message.py @@ -710,7 +710,7 @@ class Message: message, it will be set to "text/plain" and the new parameter and value will be appended as per RFC 2045. - An alternate header can specified in the header argument, and all + An alternate header can be specified in the header argument, and all parameters will be quoted as necessary unless requote is False. If charset is specified, the parameter will be encoded according to RFC diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py index 7d997b087de..329f0685fc2 100644 --- a/Lib/test/test_httplib.py +++ b/Lib/test/test_httplib.py @@ -255,8 +255,8 @@ class HeaderTests(TestCase): self.assertIn(b'\xa0NonbreakSpace: value', conn._buffer) def test_ipv6host_header(self): - # Default host header on IPv6 transaction should wrapped by [] if - # its actual IPv6 address + # Default host header on IPv6 transaction should be wrapped by [] if + # it is an IPv6 address expected = b'GET /foo HTTP/1.1\r\nHost: [2001::]:81\r\n' \ b'Accept-Encoding: identity\r\n\r\n' conn = client.HTTPConnection('[2001::]:81') diff --git a/Lib/tkinter/tix.py b/Lib/tkinter/tix.py index adb629a7c86..9269e6a0f9e 100644 --- a/Lib/tkinter/tix.py +++ b/Lib/tkinter/tix.py @@ -1052,7 +1052,7 @@ class InputOnly(TixWidget): class LabelEntry(TixWidget): """LabelEntry - Entry field with label. Packages an entry widget - and a label into one mega widget. It can beused be used to simplify + and a label into one mega widget. It can be used be used to simplify the creation of ``entry-form'' type of interface. Subwidgets Class diff --git a/Misc/HISTORY b/Misc/HISTORY index 19d612ef1c8..73a041d6fcd 100644 --- a/Misc/HISTORY +++ b/Misc/HISTORY @@ -6633,7 +6633,7 @@ C-API PyErr_Format, on machines with HAVE_LONG_LONG defined. - Issue #6151: Made PyDescr_COMMON conform to standard C (like PyObject_HEAD in - PEP 3123). The PyDescr_TYPE and PyDescr_NAME macros should be should used for + PEP 3123). The PyDescr_TYPE and PyDescr_NAME macros should be used for accessing the d_type and d_name members of structures using PyDescr_COMMON. - Issue #6405: Remove duplicate type declarations in descrobject.h. @@ -16065,7 +16065,7 @@ Core and builtins - All standard iterators now ensure that, once StopIteration has been raised, all future calls to next() on the same iterator will also raise StopIteration. There used to be various counterexamples to - this behavior, which could caused confusion or subtle program + this behavior, which could have caused confusion or subtle program breakage, without any benefits. (Note that this is still an iterator's responsibility; the iterator framework does not enforce this.) diff --git a/Objects/object.c b/Objects/object.c index 6fc4df16397..80248890085 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -1865,7 +1865,7 @@ _PyObject_DebugTypeStats(FILE *out) /* These methods are used to control infinite recursion in repr, str, print, etc. Container objects that may recursively contain themselves, - e.g. builtin dictionaries and lists, should used Py_ReprEnter() and + e.g. builtin dictionaries and lists, should use Py_ReprEnter() and Py_ReprLeave() to avoid infinite recursion. Py_ReprEnter() returns 0 the first time it is called for a particular diff --git a/README b/README index d58c40987e6..6123f047fda 100644 --- a/README +++ b/README @@ -58,7 +58,7 @@ PGO takes advantage of recent versions of the GCC or Clang compilers. If ran, the "profile-opt" rule will do several steps. First, the entire Python directory is cleaned of temporary files that -may resulted in a previous compilation. +may have resulted in a previous compilation. Then, an instrumented version of the interpreter is built, using suitable compiler flags for each flavour. Note that this is just an intermediary