Skip to content

Commit 5482db5

Browse files
[3.9] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28512)
Co-authored-by: Terry Jan Reedy <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]> Co-authored-by: Łukasz Langa <[email protected]>. (cherry picked from commit 8f943ca) Co-authored-by: Mohamad Mansour <[email protected]>
1 parent 09390c8 commit 5482db5

File tree

27 files changed

+43
-44
lines changed

27 files changed

+43
-44
lines changed

Doc/library/cgi.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ To get at submitted form data, use the :class:`FieldStorage` class. If the form
8989
contains non-ASCII characters, use the *encoding* keyword parameter set to the
9090
value of the encoding defined for the document. It is usually contained in the
9191
META tag in the HEAD section of the HTML document or by the
92-
:mailheader:`Content-Type` header). This reads the form contents from the
92+
:mailheader:`Content-Type` header. This reads the form contents from the
9393
standard input or the environment (depending on the value of various
9494
environment variables set according to the CGI standard). Since it may consume
9595
standard input, it should be instantiated only once.

Doc/library/logging.config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ in :mod:`logging` itself) and defining handlers which are declared either in
163163
:func:`listen` socket and sending a configuration which runs whatever
164164
code the attacker wants to have executed in the victim's process. This is
165165
especially easy to do if the default port is used, but not hard even if a
166-
different port is used). To avoid the risk of this happening, use the
166+
different port is used. To avoid the risk of this happening, use the
167167
``verify`` argument to :func:`listen` to prevent unrecognised
168168
configurations from being applied.
169169

Doc/library/urllib.request.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ OpenerDirector Objects
650650
optional *timeout* parameter specifies a timeout in seconds for blocking
651651
operations like the connection attempt (if not specified, the global default
652652
timeout setting will be used). The timeout feature actually works only for
653-
HTTP, HTTPS and FTP connections).
653+
HTTP, HTTPS and FTP connections.
654654

655655

656656
.. method:: OpenerDirector.error(proto, *args)

Doc/reference/compound_stmts.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,6 @@ is semantically equivalent to::
479479
The specification, background, and examples for the Python :keyword:`with`
480480
statement.
481481

482-
483482
.. index::
484483
single: parameter; function definition
485484

Include/cpython/unicodeobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ enum PyUnicode_Kind {
416416

417417

418418
/* Fast check to determine whether an object is ready. Equivalent to
419-
PyUnicode_IS_COMPACT(op) || ((PyUnicodeObject*)(op))->data.any) */
419+
PyUnicode_IS_COMPACT(op) || ((PyUnicodeObject*)(op))->data.any */
420420

421421
#define PyUnicode_IS_READY(op) (((PyASCIIObject*)op)->state.ready)
422422

Lib/_osx_support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ def customize_compiler(_config_vars):
482482
483483
This customization is performed when the first
484484
extension module build is requested
485-
in distutils.sysconfig.customize_compiler).
485+
in distutils.sysconfig.customize_compiler.
486486
"""
487487

488488
# Find a compiler to use for extension module builds

Lib/distutils/command/check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def check_metadata(self):
8383
name, version, URL
8484
8585
Recommended fields:
86-
(author and author_email) or (maintainer and maintainer_email))
86+
(author and author_email) or (maintainer and maintainer_email)
8787
8888
Warns if any are missing.
8989
"""

Lib/distutils/msvc9compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ def manifest_get_embed_info(self, target_desc, ld_args):
673673
# If a manifest should be embedded, return a tuple of
674674
# (manifest_filename, resource_id). Returns None if no manifest
675675
# should be embedded. See http://bugs.python.org/issue7833 for why
676-
# we want to avoid any manifest for extension modules if we can)
676+
# we want to avoid any manifest for extension modules if we can.
677677
for arg in ld_args:
678678
if arg.startswith("/MANIFESTFILE:"):
679679
temp_manifest = arg.split(":", 1)[1]

Lib/graphlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self, node):
1717
self.npredecessors = 0
1818

1919
# List of successor nodes. The list can contain duplicated elements as
20-
# long as they're all reflected in the successor's npredecessors attribute).
20+
# long as they're all reflected in the successor's npredecessors attribute.
2121
self.successors = []
2222

2323

Lib/idlelib/idle_test/test_config_key.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
Coverage is effectively 100%. Tkinter dialog is mocked, Mac-only line
44
may be skipped, and dummy function in bind test should not be called.
5-
Not tested: exit with 'self.advanced or self.keys_ok(keys)) ...' False.
5+
Not tested: exit with 'self.advanced or self.keys_ok(keys) ...' False.
66
"""
77

88
from idlelib import config_key

0 commit comments

Comments
 (0)