From bcf4135bc34a56e633d256cf2998462cca5e76e9 Mon Sep 17 00:00:00 2001 From: Mohamad Mansour Date: Mon, 20 Sep 2021 14:49:13 +0300 Subject: [PATCH 01/11] Fixed some syntax --- Doc/library/cgi.rst | 2 +- Doc/library/logging.config.rst | 2 +- Doc/library/pathlib.rst | 2 +- Doc/library/urllib.request.rst | 2 +- Doc/reference/compound_stmts.rst | 2 +- Include/cpython/unicodeobject.h | 2 +- Include/internal/pycore_object.h | 2 +- Lib/_osx_support.py | 2 +- Lib/distutils/command/check.py | 2 +- Lib/distutils/msvc9compiler.py | 2 +- Lib/graphlib.py | 2 +- Lib/idlelib/idle_test/test_config_key.py | 2 +- Lib/idlelib/idle_test/test_query.py | 2 +- Lib/msilib/schema.py | 2 +- Lib/pkgutil.py | 2 +- Lib/pydoc_data/topics.py | 2 +- Lib/test/support/__init__.py | 2 +- Lib/test/test_format.py | 2 +- Lib/test/test_importlib/source/test_source_encoding.py | 2 +- Lib/test/test_winreg.py | 2 +- Misc/NEWS.d/3.8.0b1.rst | 2 +- Misc/NEWS.d/next/Build/2021-09-09-16-45-26.bpo-45067.mFmY92.rst | 2 +- Modules/_datetimemodule.c | 2 +- Modules/_math.c | 2 +- Modules/arraymodule.c | 2 +- Modules/clinic/arraymodule.c.h | 2 +- Modules/zlibmodule.c | 2 +- Objects/unicodeobject.c | 2 +- PC/getpathp.c | 2 +- Tools/stringbench/stringbench.py | 2 +- 30 files changed, 30 insertions(+), 30 deletions(-) diff --git a/Doc/library/cgi.rst b/Doc/library/cgi.rst index 1494fa7d52407a..c151f04dfb8d01 100644 --- a/Doc/library/cgi.rst +++ b/Doc/library/cgi.rst @@ -89,7 +89,7 @@ To get at submitted form data, use the :class:`FieldStorage` class. If the form contains non-ASCII characters, use the *encoding* keyword parameter set to the value of the encoding defined for the document. It is usually contained in the META tag in the HEAD section of the HTML document or by the -:mailheader:`Content-Type` header). This reads the form contents from the +:mailheader:`Content-Type` header. This reads the form contents from the standard input or the environment (depending on the value of various environment variables set according to the CGI standard). Since it may consume standard input, it should be instantiated only once. diff --git a/Doc/library/logging.config.rst b/Doc/library/logging.config.rst index d3478a94345f0a..5a3e686802ea83 100644 --- a/Doc/library/logging.config.rst +++ b/Doc/library/logging.config.rst @@ -168,7 +168,7 @@ in :mod:`logging` itself) and defining handlers which are declared either in :func:`listen` socket and sending a configuration which runs whatever code the attacker wants to have executed in the victim's process. This is especially easy to do if the default port is used, but not hard even if a - different port is used). To avoid the risk of this happening, use the + different port is used. To avoid the risk of this happening, use the ``verify`` argument to :func:`listen` to prevent unrecognised configurations from being applied. diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index b6507eb4d6fa2c..5c2cf4078bf5ac 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -552,7 +552,7 @@ Pure paths provide the following methods and properties: Traceback (most recent call last): File "", line 1, in File "pathlib.py", line 694, in relative_to - .format(str(self), str(formatted))) + .format(str(self), str(formatted)) ValueError: '/etc/passwd' is not in the subpath of '/usr' OR one path is relative and the other absolute. NOTE: This function is part of :class:`PurePath` and works with strings. It does not check or access the underlying file structure. diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst index 130c7d694e8a6a..d20157c7ac626f 100644 --- a/Doc/library/urllib.request.rst +++ b/Doc/library/urllib.request.rst @@ -655,7 +655,7 @@ OpenerDirector Objects optional *timeout* parameter specifies a timeout in seconds for blocking operations like the connection attempt (if not specified, the global default timeout setting will be used). The timeout feature actually works only for - HTTP, HTTPS and FTP connections). + (HTTP, HTTPS and FTP connections). .. method:: OpenerDirector.error(proto, *args) diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index 8afcadbfbcf6b0..f24222f5fd9e94 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -1055,7 +1055,7 @@ subject value: patterns using the :data:`~object.__match_args__` attribute on the class ``name_or_attr`` before matching: - I. The equivalent of ``getattr(cls, "__match_args__", ()))`` is called. + I. The equivalent of ``getattr(cls, "__match_args__", ())`` is called. * If this raises an exception, the exception bubbles up. diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h index 95b76cecd6f4f2..6e85f4ab7d9b62 100644 --- a/Include/cpython/unicodeobject.h +++ b/Include/cpython/unicodeobject.h @@ -416,7 +416,7 @@ enum PyUnicode_Kind { /* Fast check to determine whether an object is ready. Equivalent to - PyUnicode_IS_COMPACT(op) || ((PyUnicodeObject*)(op))->data.any) */ + PyUnicode_IS_COMPACT(op) || (((PyUnicodeObject*)(op))->data.any) */ #define PyUnicode_IS_READY(op) (((PyASCIIObject*)op)->state.ready) diff --git a/Include/internal/pycore_object.h b/Include/internal/pycore_object.h index 744b41ae5d90d6..82dddf119a47a1 100644 --- a/Include/internal/pycore_object.h +++ b/Include/internal/pycore_object.h @@ -168,7 +168,7 @@ _PyObject_IS_GC(PyObject *obj) // Fast inlined version of PyType_IS_GC() #define _PyType_IS_GC(t) _PyType_HasFeature((t), Py_TPFLAGS_HAVE_GC) -// Usage: assert(_Py_CheckSlotResult(obj, "__getitem__", result != NULL))); +// Usage: assert(_Py_CheckSlotResult(obj, "__getitem__", result != NULL)); extern int _Py_CheckSlotResult( PyObject *obj, const char *slot_name, diff --git a/Lib/_osx_support.py b/Lib/_osx_support.py index 326b36d6116314..aa66c8b9f4189f 100644 --- a/Lib/_osx_support.py +++ b/Lib/_osx_support.py @@ -481,7 +481,7 @@ def customize_compiler(_config_vars): This customization is performed when the first extension module build is requested - in distutils.sysconfig.customize_compiler). + in distutils.sysconfig.customize_compiler. """ # Find a compiler to use for extension module builds diff --git a/Lib/distutils/command/check.py b/Lib/distutils/command/check.py index ada250064678ee..73a30f3afd84a3 100644 --- a/Lib/distutils/command/check.py +++ b/Lib/distutils/command/check.py @@ -83,7 +83,7 @@ def check_metadata(self): name, version, URL Recommended fields: - (author and author_email) or (maintainer and maintainer_email)) + (author and author_email) or (maintainer and maintainer_email) Warns if any are missing. """ diff --git a/Lib/distutils/msvc9compiler.py b/Lib/distutils/msvc9compiler.py index 6934e964abd69b..28b2b8f395c4aa 100644 --- a/Lib/distutils/msvc9compiler.py +++ b/Lib/distutils/msvc9compiler.py @@ -672,7 +672,7 @@ def manifest_setup_ldargs(self, output_filename, build_temp, ld_args): def manifest_get_embed_info(self, target_desc, ld_args): # If a manifest should be embedded, return a tuple of # (manifest_filename, resource_id). Returns None if no manifest - # should be embedded. See http://bugs.python.org/issue7833 for why + # should be embedded. (see http://bugs.python.org/issue7833 for why # we want to avoid any manifest for extension modules if we can) for arg in ld_args: if arg.startswith("/MANIFESTFILE:"): diff --git a/Lib/graphlib.py b/Lib/graphlib.py index d0e7a4814c565d..1c5d9a413c944d 100644 --- a/Lib/graphlib.py +++ b/Lib/graphlib.py @@ -17,7 +17,7 @@ def __init__(self, node): self.npredecessors = 0 # List of successor nodes. The list can contain duplicated elements as - # long as they're all reflected in the successor's npredecessors attribute). + # long as they're all reflected in the successor's npredecessors attribute. self.successors = [] diff --git a/Lib/idlelib/idle_test/test_config_key.py b/Lib/idlelib/idle_test/test_config_key.py index b7fe7fd6b5ec10..bf66cadf57cd3c 100644 --- a/Lib/idlelib/idle_test/test_config_key.py +++ b/Lib/idlelib/idle_test/test_config_key.py @@ -2,7 +2,7 @@ Coverage is effectively 100%. Tkinter dialog is mocked, Mac-only line may be skipped, and dummy function in bind test should not be called. -Not tested: exit with 'self.advanced or self.keys_ok(keys)) ...' False. +Not tested: exit with 'self.advanced or self.keys_ok(keys) ...' False. """ from idlelib import config_key diff --git a/Lib/idlelib/idle_test/test_query.py b/Lib/idlelib/idle_test/test_query.py index 41905111b7a730..936b62c1c5afb8 100644 --- a/Lib/idlelib/idle_test/test_query.py +++ b/Lib/idlelib/idle_test/test_query.py @@ -1,4 +1,4 @@ -"""Test query, coverage 93%). +"""Test query, (coverage 93%). Non-gui tests for Query, SectionName, ModuleName, and HelpSource use dummy versions that extract the non-gui methods and add other needed diff --git a/Lib/msilib/schema.py b/Lib/msilib/schema.py index eeb3ecd27ab658..9f5745cfb14de2 100644 --- a/Lib/msilib/schema.py +++ b/Lib/msilib/schema.py @@ -664,7 +664,7 @@ ('Class','Component_','N',None, None, 'Component',1,'Identifier',None, 'Required foreign key into the Component Table, specifying the component for which to return a path when called through LocateComponent.',), ('Class','Context','N',None, None, None, None, 'Identifier',None, 'The numeric server context for this server. CLSCTX_xxxx',), ('Class','DefInprocHandler','Y',None, None, None, None, 'Filename','1;2;3','Optional default inproc handler. Only optionally provided if Context=CLSCTX_LOCAL_SERVER. Typically "ole32.dll" or "mapi32.dll"',), -('Class','FileTypeMask','Y',None, None, None, None, 'Text',None, 'Optional string containing information for the HKCRthis CLSID) key. If multiple patterns exist, they must be delimited by a semicolon, and numeric subkeys will be generated: 0,1,2...',), +('Class','FileTypeMask','Y',None, None, None, None, 'Text',None, 'Optional string containing information for the HKCRthis CLSID key. If multiple patterns exist, they must be delimited by a semicolon, and numeric subkeys will be generated: 0,1,2...',), ('Class','Icon_','Y',None, None, 'Icon',1,'Identifier',None, 'Optional foreign key into the Icon Table, specifying the icon file associated with this CLSID. Will be written under the DefaultIcon key.',), ('Class','IconIndex','Y',-32767,32767,None, None, None, None, 'Optional icon index.',), ('Class','ProgId_Default','Y',None, None, 'ProgId',1,'Text',None, 'Optional ProgId associated with this CLSID.',), diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py index 48c1479ee6cedd..bdebfd2fc8ac32 100644 --- a/Lib/pkgutil.py +++ b/Lib/pkgutil.py @@ -672,7 +672,7 @@ def resolve_name(name): ValueError - if `name` isn't in a recognised format ImportError - if an import failed when it shouldn't have AttributeError - if a failure occurred when traversing the object hierarchy - within the imported package to get to the desired object) + within the imported package to get to the desired object. """ global _NAME_PATTERN if _NAME_PATTERN is None: diff --git a/Lib/pydoc_data/topics.py b/Lib/pydoc_data/topics.py index 83e1a975ec78b2..40f7a50128619f 100644 --- a/Lib/pydoc_data/topics.py +++ b/Lib/pydoc_data/topics.py @@ -3324,7 +3324,7 @@ 'class\n' ' "name_or_attr" before matching:\n' '\n' - ' I. The equivalent of "getattr(cls, "__match_args__", ()))" ' + ' I. The equivalent of "getattr(cls, "__match_args__", ())" ' 'is\n' ' called.\n' '\n' diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index bc40bba9094963..38c866686ba6de 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -395,7 +395,7 @@ def dec(*args, **kwargs): # A constant likely larger than the underlying OS socket buffer size, to make # writes blocking. # The socket buffer sizes can usually be tuned system-wide (e.g. through sysctl -# on Linux), or on a per-socket basis (SO_SNDBUF/SO_RCVBUF). See issue #18643 +# on Linux), or on a per-socket basis (SO_SNDBUF/SO_RCVBUF). (see issue #18643 # for a discussion of this number). SOCK_MAX_SIZE = 16 * 1024 * 1024 + 1 diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py index 6679bd3d8899cd..ae0d4f7308e2c9 100644 --- a/Lib/test/test_format.py +++ b/Lib/test/test_format.py @@ -249,7 +249,7 @@ def test_common_format(self): # base marker shouldn't change the size testcommon("%0#35.33o", big, "0o012345670123456701234567012345670") - # Some small ints, in both Python int and flavors). + # Some small ints, in both Python int and flavors. testcommon("%d", 42, "42") testcommon("%d", -42, "-42") testcommon("%d", 42.0, "42") diff --git a/Lib/test/test_importlib/source/test_source_encoding.py b/Lib/test/test_importlib/source/test_source_encoding.py index 980855fe1ade18..c0b9b031262eb7 100644 --- a/Lib/test/test_importlib/source/test_source_encoding.py +++ b/Lib/test/test_importlib/source/test_source_encoding.py @@ -23,7 +23,7 @@ class EncodingTest: PEP 263 specifies how that can change on a per-file basis. Either the first or second line can contain the encoding line [encoding first line] - encoding second line]. If the file has the BOM marker it is considered UTF-8 + [encoding second line]. If the file has the BOM marker it is considered UTF-8 implicitly [BOM]. If any encoding is specified it must be UTF-8, else it is an error [BOM and utf-8][BOM conflict]. diff --git a/Lib/test/test_winreg.py b/Lib/test/test_winreg.py index fedfbe9b447655..ed9d79cfecc1be 100644 --- a/Lib/test/test_winreg.py +++ b/Lib/test/test_winreg.py @@ -45,7 +45,7 @@ ("Raw Data", b"binary\x00data", REG_BINARY), ("Big String", "x"*(2**14-1), REG_SZ), ("Big Binary", b"x"*(2**14), REG_BINARY), - # Two and three kanjis, meaning: "Japan" and "Japanese") + # Two and three kanjis, meaning: ("Japan" and "Japanese") ("Japanese 日本", "日本語", REG_SZ), ] diff --git a/Misc/NEWS.d/3.8.0b1.rst b/Misc/NEWS.d/3.8.0b1.rst index 5400c07795292a..5285770de13186 100644 --- a/Misc/NEWS.d/3.8.0b1.rst +++ b/Misc/NEWS.d/3.8.0b1.rst @@ -568,7 +568,7 @@ Make :func:`asyncio.create_subprocess_exec` accept path-like arguments. .. section: Library Change default *max_workers* of ``ThreadPoolExecutor`` from ``cpu_count() * -5`` to ``min(32, cpu_count() + 4))``. Previous value was unreasonably large +5`` to ``min(32, cpu_count() + 4)``. Previous value was unreasonably large on many cores machines. .. diff --git a/Misc/NEWS.d/next/Build/2021-09-09-16-45-26.bpo-45067.mFmY92.rst b/Misc/NEWS.d/next/Build/2021-09-09-16-45-26.bpo-45067.mFmY92.rst index b64a899bd33728..fa82fce77fdf6b 100644 --- a/Misc/NEWS.d/next/Build/2021-09-09-16-45-26.bpo-45067.mFmY92.rst +++ b/Misc/NEWS.d/next/Build/2021-09-09-16-45-26.bpo-45067.mFmY92.rst @@ -1,5 +1,5 @@ The ncurses function extended_color_content was introduced in 2017. -https://invisible-island.net/ncurses/NEWS.html#index-t20170401) The +(https://invisible-island.net/ncurses/NEWS.html#index-t20170401) The ncurses-devel package in CentOS 7 had a older version ncurses resulted in compilation error. For compiling ncurses with extended color support, we verify the version of the ncurses library >= 20170401. diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c index 8ef2dad37a3a05..e54a01b44c5bad 100644 --- a/Modules/_datetimemodule.c +++ b/Modules/_datetimemodule.c @@ -1013,7 +1013,7 @@ new_time_ex(int hour, int minute, int second, int usecond, * true. Passing false is a speed optimization, if you know for sure * that seconds and microseconds are already in their proper ranges. In any * case, raises OverflowError and returns NULL if the normalized days is out - * of range). + * of range. */ static PyObject * new_delta_ex(int days, int seconds, int microseconds, int normalize, diff --git a/Modules/_math.c b/Modules/_math.c index 02d8f1c43c8007..68e3a2346925de 100644 --- a/Modules/_math.c +++ b/Modules/_math.c @@ -90,7 +90,7 @@ _Py_acosh(double x) * asinh(x) = sign(x) * log [ |x| + sqrt(x*x+1) ] * we have * asinh(x) := x if 1+x*x=1, - * := sign(x)*(log(x)+ln2)) for large |x|, else + * := sign(x)*(log(x)+ln2) for large |x|, else * := sign(x)*log(2|x|+1/(|x|+sqrt(x*x+1))) if|x|>2, else * := sign(x)*log1p(|x| + x^2/(1 + sqrt(1+x^2))) */ diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 9a3203c7caaa8a..85c409a6a30297 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -1678,7 +1678,7 @@ array.array.frombytes buffer: Py_buffer / -Appends items from the string, interpreting it as an array of machine values, as if it had been read from a file using the fromfile() method). +Appends items from the string, interpreting it as an array of machine values, as if it had been read from a file using the fromfile() method. [clinic start generated code]*/ static PyObject * diff --git a/Modules/clinic/arraymodule.c.h b/Modules/clinic/arraymodule.c.h index d2513eb4f48cfd..76f211d5c0f20a 100644 --- a/Modules/clinic/arraymodule.c.h +++ b/Modules/clinic/arraymodule.c.h @@ -359,7 +359,7 @@ PyDoc_STRVAR(array_array_frombytes__doc__, "frombytes($self, buffer, /)\n" "--\n" "\n" -"Appends items from the string, interpreting it as an array of machine values, as if it had been read from a file using the fromfile() method)."); +"Appends items from the string, interpreting it as an array of machine values, as if it had been read from a file using the fromfile() method."); #define ARRAY_ARRAY_FROMBYTES_METHODDEF \ {"frombytes", (PyCFunction)array_array_frombytes, METH_O, array_array_frombytes__doc__}, diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c index 27a6d9a9366bf7..28fe8840fc0675 100644 --- a/Modules/zlibmodule.c +++ b/Modules/zlibmodule.c @@ -1507,7 +1507,7 @@ PyDoc_STRVAR(zlib_module_documentation, "compressobj([level[, ...]]) -- Return a compressor object.\n" "crc32(string[, start]) -- Compute a CRC-32 checksum.\n" "decompress(string,[wbits],[bufsize]) -- Decompresses a compressed string.\n" -"decompressobj([wbits[, zdict]]]) -- Return a decompressor object.\n" +"decompressobj([wbits[, zdict]]) -- Return a decompressor object.\n" "\n" "'wbits' is window buffer size and container format.\n" "Compressor objects support compress() and flush() methods; decompressor\n" diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 3e6b70bf4b6f54..b33d7371104a0d 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -10738,7 +10738,7 @@ replace(PyObject *self, PyObject *str1, release1 = 1; } /* new_size = PyUnicode_GET_LENGTH(self) + n * (PyUnicode_GET_LENGTH(str2) - - PyUnicode_GET_LENGTH(str1))); */ + PyUnicode_GET_LENGTH(str1)); */ if (len1 < len2 && len2 - len1 > (PY_SSIZE_T_MAX - slen) / n) { PyErr_SetString(PyExc_OverflowError, "replace string is too long"); diff --git a/PC/getpathp.c b/PC/getpathp.c index 53da3a6d05faee..603a1eb13c4ff0 100644 --- a/PC/getpathp.c +++ b/PC/getpathp.c @@ -29,7 +29,7 @@ - If we DO have a Python Home: The relevant sub-directories (Lib, DLLs, etc) are based on the Python Home - If we DO NOT have a Python Home, the core Python Path is - loaded from the registry. This is the main PythonPath key, + loaded from the registry. (This is the main PythonPath key, and both HKLM and HKCU are combined to form the path) * Iff - we can not locate the Python Home, have not had a PYTHONPATH diff --git a/Tools/stringbench/stringbench.py b/Tools/stringbench/stringbench.py index 5abc25a5723f26..5d2b4146378626 100644 --- a/Tools/stringbench/stringbench.py +++ b/Tools/stringbench/stringbench.py @@ -730,7 +730,7 @@ def join_alphabet_list_five(STR): for x in _RANGE_1000: sep_join(s2) -@bench('"A".join(["Bob"]*100))', +@bench('"A".join(["Bob"]*100)', "join list of 100 words, with 1 character sep", 1000) def join_100_words_single(STR): sep = STR("A") From ab7b8dad9e6a66bc608e744dbd1568a340958464 Mon Sep 17 00:00:00 2001 From: Mohamad Mansour <66031317+mohamadmansourX@users.noreply.github.com> Date: Mon, 20 Sep 2021 17:16:57 +0300 Subject: [PATCH 02/11] Update Doc/library/urllib.request.rst Co-authored-by: Terry Jan Reedy --- Doc/library/urllib.request.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst index d20157c7ac626f..dbb8c250772ed2 100644 --- a/Doc/library/urllib.request.rst +++ b/Doc/library/urllib.request.rst @@ -655,7 +655,7 @@ OpenerDirector Objects optional *timeout* parameter specifies a timeout in seconds for blocking operations like the connection attempt (if not specified, the global default timeout setting will be used). The timeout feature actually works only for - (HTTP, HTTPS and FTP connections). + HTTP, HTTPS and FTP connections. .. method:: OpenerDirector.error(proto, *args) From a33362eb4aad1a2062c56b816dace84a6f87a793 Mon Sep 17 00:00:00 2001 From: Mohamad Mansour <66031317+mohamadmansourX@users.noreply.github.com> Date: Mon, 20 Sep 2021 17:17:07 +0300 Subject: [PATCH 03/11] Update Lib/distutils/msvc9compiler.py Co-authored-by: Terry Jan Reedy --- Lib/distutils/msvc9compiler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/distutils/msvc9compiler.py b/Lib/distutils/msvc9compiler.py index 28b2b8f395c4aa..a7976fbe3ed924 100644 --- a/Lib/distutils/msvc9compiler.py +++ b/Lib/distutils/msvc9compiler.py @@ -672,8 +672,8 @@ def manifest_setup_ldargs(self, output_filename, build_temp, ld_args): def manifest_get_embed_info(self, target_desc, ld_args): # If a manifest should be embedded, return a tuple of # (manifest_filename, resource_id). Returns None if no manifest - # should be embedded. (see http://bugs.python.org/issue7833 for why - # we want to avoid any manifest for extension modules if we can) + # should be embedded. See http://bugs.python.org/issue7833 for why + # we want to avoid any manifest for extension modules if we can. for arg in ld_args: if arg.startswith("/MANIFESTFILE:"): temp_manifest = arg.split(":", 1)[1] From 2f0c3013b406c755e48187d128b3706ce9fa7b83 Mon Sep 17 00:00:00 2001 From: Mohamad Mansour <66031317+mohamadmansourX@users.noreply.github.com> Date: Mon, 20 Sep 2021 17:17:21 +0300 Subject: [PATCH 04/11] Update Lib/idlelib/idle_test/test_query.py Co-authored-by: Terry Jan Reedy --- Lib/idlelib/idle_test/test_query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/idlelib/idle_test/test_query.py b/Lib/idlelib/idle_test/test_query.py index 936b62c1c5afb8..bb12b2b08652d5 100644 --- a/Lib/idlelib/idle_test/test_query.py +++ b/Lib/idlelib/idle_test/test_query.py @@ -1,4 +1,4 @@ -"""Test query, (coverage 93%). +"""Test query, coverage 93%. Non-gui tests for Query, SectionName, ModuleName, and HelpSource use dummy versions that extract the non-gui methods and add other needed From 173e67e6f8b96341005c1fd9df5c80ac2bf23366 Mon Sep 17 00:00:00 2001 From: Mohamad Mansour <66031317+mohamadmansourX@users.noreply.github.com> Date: Mon, 20 Sep 2021 17:17:27 +0300 Subject: [PATCH 05/11] Update Lib/test/support/__init__.py Co-authored-by: Terry Jan Reedy --- Lib/test/support/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 38c866686ba6de..b29f438e52cf82 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -395,8 +395,8 @@ def dec(*args, **kwargs): # A constant likely larger than the underlying OS socket buffer size, to make # writes blocking. # The socket buffer sizes can usually be tuned system-wide (e.g. through sysctl -# on Linux), or on a per-socket basis (SO_SNDBUF/SO_RCVBUF). (see issue #18643 -# for a discussion of this number). +# on Linux), or on a per-socket basis (SO_SNDBUF/SO_RCVBUF). See issue #18643 +# for a discussion of this number. SOCK_MAX_SIZE = 16 * 1024 * 1024 + 1 # decorator for skipping tests on non-IEEE 754 platforms From 3204e0c3d646bc0356a8a03a2169e4f8fe465c54 Mon Sep 17 00:00:00 2001 From: Mohamad Mansour <66031317+mohamadmansourX@users.noreply.github.com> Date: Mon, 20 Sep 2021 17:17:36 +0300 Subject: [PATCH 06/11] Update Lib/test/test_winreg.py Co-authored-by: Terry Jan Reedy --- Lib/test/test_winreg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_winreg.py b/Lib/test/test_winreg.py index ed9d79cfecc1be..8157c2da6efaa6 100644 --- a/Lib/test/test_winreg.py +++ b/Lib/test/test_winreg.py @@ -45,7 +45,7 @@ ("Raw Data", b"binary\x00data", REG_BINARY), ("Big String", "x"*(2**14-1), REG_SZ), ("Big Binary", b"x"*(2**14), REG_BINARY), - # Two and three kanjis, meaning: ("Japan" and "Japanese") + # Two and three kanjis, meaning: "Japan" and "Japanese". ("Japanese 日本", "日本語", REG_SZ), ] From ddad1bceacfea71291cccf0e2262663662f6ae77 Mon Sep 17 00:00:00 2001 From: Mohamad Mansour <66031317+mohamadmansourX@users.noreply.github.com> Date: Mon, 20 Sep 2021 17:17:59 +0300 Subject: [PATCH 07/11] Update Misc/NEWS.d/next/Build/2021-09-09-16-45-26.bpo-45067.mFmY92.rst Co-authored-by: Terry Jan Reedy --- .../NEWS.d/next/Build/2021-09-09-16-45-26.bpo-45067.mFmY92.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Build/2021-09-09-16-45-26.bpo-45067.mFmY92.rst b/Misc/NEWS.d/next/Build/2021-09-09-16-45-26.bpo-45067.mFmY92.rst index fa82fce77fdf6b..1c3172e533b389 100644 --- a/Misc/NEWS.d/next/Build/2021-09-09-16-45-26.bpo-45067.mFmY92.rst +++ b/Misc/NEWS.d/next/Build/2021-09-09-16-45-26.bpo-45067.mFmY92.rst @@ -1,4 +1,5 @@ -The ncurses function extended_color_content was introduced in 2017. +The ncurses function extended_color_content was introduced in 2017 + (https://invisible-island.net/ncurses/NEWS.html#index-t20170401) The ncurses-devel package in CentOS 7 had a older version ncurses resulted in compilation error. For compiling ncurses with extended color support, we From 1ae146f611ec2f183d1e8027bd2ed35825fff95f Mon Sep 17 00:00:00 2001 From: Mohamad Mansour <66031317+mohamadmansourX@users.noreply.github.com> Date: Mon, 20 Sep 2021 17:18:04 +0300 Subject: [PATCH 08/11] Update Misc/NEWS.d/next/Build/2021-09-09-16-45-26.bpo-45067.mFmY92.rst Co-authored-by: Terry Jan Reedy --- .../NEWS.d/next/Build/2021-09-09-16-45-26.bpo-45067.mFmY92.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Build/2021-09-09-16-45-26.bpo-45067.mFmY92.rst b/Misc/NEWS.d/next/Build/2021-09-09-16-45-26.bpo-45067.mFmY92.rst index 1c3172e533b389..a89736eb33e82b 100644 --- a/Misc/NEWS.d/next/Build/2021-09-09-16-45-26.bpo-45067.mFmY92.rst +++ b/Misc/NEWS.d/next/Build/2021-09-09-16-45-26.bpo-45067.mFmY92.rst @@ -1,6 +1,7 @@ The ncurses function extended_color_content was introduced in 2017 -(https://invisible-island.net/ncurses/NEWS.html#index-t20170401) The +(https://invisible-island.net/ncurses/NEWS.html#index-t20170401). The + ncurses-devel package in CentOS 7 had a older version ncurses resulted in compilation error. For compiling ncurses with extended color support, we verify the version of the ncurses library >= 20170401. From 683bea4f3408c846569204c306c9cfb031fc0f24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Langa?= Date: Wed, 22 Sep 2021 00:11:43 +0200 Subject: [PATCH 09/11] Apply suggestions from code review Co-authored-by: Serhiy Storchaka --- Doc/library/pathlib.rst | 2 +- Include/cpython/unicodeobject.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 5c2cf4078bf5ac..b6507eb4d6fa2c 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -552,7 +552,7 @@ Pure paths provide the following methods and properties: Traceback (most recent call last): File "", line 1, in File "pathlib.py", line 694, in relative_to - .format(str(self), str(formatted)) + .format(str(self), str(formatted))) ValueError: '/etc/passwd' is not in the subpath of '/usr' OR one path is relative and the other absolute. NOTE: This function is part of :class:`PurePath` and works with strings. It does not check or access the underlying file structure. diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h index 6e85f4ab7d9b62..b40e2ea1011f5c 100644 --- a/Include/cpython/unicodeobject.h +++ b/Include/cpython/unicodeobject.h @@ -416,7 +416,7 @@ enum PyUnicode_Kind { /* Fast check to determine whether an object is ready. Equivalent to - PyUnicode_IS_COMPACT(op) || (((PyUnicodeObject*)(op))->data.any) */ + PyUnicode_IS_COMPACT(op) || ((PyUnicodeObject*)(op))->data.any */ #define PyUnicode_IS_READY(op) (((PyASCIIObject*)op)->state.ready) From 35f243ae585ddce9909fc908ada6138bb5c248a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Langa?= Date: Wed, 22 Sep 2021 00:36:07 +0200 Subject: [PATCH 10/11] Run `make regen-all` --- Modules/arraymodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 85c409a6a30297..c9b6a92c227491 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -1683,7 +1683,7 @@ Appends items from the string, interpreting it as an array of machine values, as static PyObject * array_array_frombytes_impl(arrayobject *self, Py_buffer *buffer) -/*[clinic end generated code: output=d9842c8f7510a516 input=2bbf2b53ebfcc988]*/ +/*[clinic end generated code: output=d9842c8f7510a516 input=378db226dfac949e]*/ { return frombytes(self, buffer); } From dc776d31de764d013c6e51a6c079353791cbb3ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Langa?= Date: Wed, 22 Sep 2021 00:37:29 +0200 Subject: [PATCH 11/11] Run `make regen-all` --- Modules/clinic/arraymodule.c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/clinic/arraymodule.c.h b/Modules/clinic/arraymodule.c.h index 76f211d5c0f20a..c46cc738de91b7 100644 --- a/Modules/clinic/arraymodule.c.h +++ b/Modules/clinic/arraymodule.c.h @@ -572,4 +572,4 @@ PyDoc_STRVAR(array_arrayiterator___setstate____doc__, #define ARRAY_ARRAYITERATOR___SETSTATE___METHODDEF \ {"__setstate__", (PyCFunction)array_arrayiterator___setstate__, METH_O, array_arrayiterator___setstate____doc__}, -/*[clinic end generated code: output=376001addedc67ee input=a9049054013a1b77]*/ +/*[clinic end generated code: output=f130a994f98f1227 input=a9049054013a1b77]*/