]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Replace non-breaking spaces with normal spaces (#130116)
authorAN Long <aisk@users.noreply.github.com>
Sun, 16 Feb 2025 01:33:14 +0000 (10:33 +0900)
committerGitHub <noreply@github.com>
Sun, 16 Feb 2025 01:33:14 +0000 (09:33 +0800)
Using normal spaces in place of non-breaking spaces.

13 files changed:
Android/README.md
Doc/library/itertools.rst
Doc/library/sqlite3.rst
Doc/whatsnew/3.1.rst
Doc/whatsnew/3.5.rst
Doc/whatsnew/3.6.rst
InternalDocs/interpreter.md
Lib/test/clinic.test.c
Lib/test/test_asyncio/test_selector_events.py
Lib/test/test_bytes.py
Lib/test/test_embed.py
Lib/test/test_pyrepl/test_reader.py
Misc/NEWS.d/3.11.0b1.rst

index 3daa545cc93746df5347ffeb7248a99fdd32e93b..28d48917e4e5a8e67a9e8c6db1bd9951a791b133 100644 (file)
@@ -119,10 +119,10 @@ stderr. Add the `-v` option to also show Gradle output, and non-Python logcat
 messages.
 
 Any other arguments on the `android.py test` command line will be passed through
-to `python -m test` – use `--` to separate them from android.py's own options.
+to `python -m test` – use `--` to separate them from android.py's own options.
 See the [Python Developer's
 Guide](https://devguide.python.org/testing/run-write-tests/) for common options
-– most of them will work on Android, except for those that involve subprocesses,
+– most of them will work on Android, except for those that involve subprocesses,
 such as `-j`.
 
 Every time you run `android.py test`, changes in pure-Python files in the
index fbbec42ce9dae71cf84cb6b9b2c1a86b9ebc53cc..61e413b63cdfbebb42109d15a2fe4b20901b02cd 100644 (file)
@@ -79,7 +79,7 @@ Examples                                         Results
 ``product('ABCD', repeat=2)``                    ``AA AB AC AD BA BB BC BD CA CB CC CD DA DB DC DD``
 ``permutations('ABCD', 2)``                      ``AB AC AD BA BC BD CA CB CD DA DB DC``
 ``combinations('ABCD', 2)``                      ``AB AC AD BC BD CD``
-``combinations_with_replacement('ABCD', 2)``     ``AA AB AC AD BB BC BD CC CD DD``
+``combinations_with_replacement('ABCD', 2)``     ``AA AB AC AD BB BC BD CC CD DD``
 ==============================================   =============================================================
 
 
index 096892b605b99c60ef7fe4db15ee6cd6c23c913b..4de09e14062d926aae5fea1e53830c50833a28c5 100644 (file)
@@ -1148,7 +1148,7 @@ Connection objects
           the *remaining* number of pages still to be copied,
           and the *total* number of pages.
           Defaults to ``None``.
-      :type progress: :term:`callback` | None
+      :type progress: :term:`callback` | None
 
       :param str name:
           The name of the database to back up.
index b9606beb5f9ef95c3f129d5d60865af571b31c44..9dc63c7976c5123cc473f956824fc46b0f9374e8 100644 (file)
@@ -47,7 +47,7 @@
    when researching a change.
 
 This article explains the new features in Python 3.1, compared to 3.0.
-Python 3.1 was released on June 27, 2009.
+Python 3.1 was released on June 27, 2009.
 
 
 PEP 372: Ordered Dictionaries
index 3f3f634171dab61fdc82a5e3b5b8a37b39102fda..db3f1db3bd74ad5e82f2e7351ea291d3e6f93ca4 100644 (file)
@@ -45,7 +45,7 @@
    when researching a change.
 
 This article explains the new features in Python 3.5, compared to 3.4.
-Python 3.5 was released on September 13, 2015.  See the
+Python 3.5 was released on September 13, 2015.  See the
 `changelog <https://docs.python.org/3.5/whatsnew/changelog.html>`_ for a full
 list of changes.
 
index 1fcc5d7cbfb387d677dcf9c733b9c32d784d4468..050c9103b00c98dfc3ed8ce324614acca0886884 100644 (file)
@@ -45,7 +45,7 @@
    when researching a change.
 
 This article explains the new features in Python 3.6, compared to 3.5.
-Python 3.6 was released on December 23, 2016.  See the
+Python 3.6 was released on December 23, 2016.  See the
 `changelog <https://docs.python.org/3.6/whatsnew/changelog.html>`_ for a full
 list of changes.
 
index 52702792c6cb7b198e35e4e188597aa197b2899a..7195d9c6de575cb6a76c6388a4cbc5bc75e3c23b 100644 (file)
@@ -105,7 +105,7 @@ snippet decode a complete instruction:
 For various reasons we'll get to later (mostly efficiency, given that `EXTENDED_ARG`
 is rare) the actual code is different.
 
-## Jumps
+## Jumps
 
 Note that when the `switch` statement is reached, `next_instr` (the "instruction offset")
 already points to the next instruction.
index 0dfcc281985100e52173693a1ccc16fb405f3915..64f326903c9afd34192b7cc48e536dcd7349f0c1 100644 (file)
@@ -3976,7 +3976,7 @@ test_preprocessor_guarded_if_with_continuation_impl(PyObject *module)
 /*[clinic end generated code: output=3d0712ca9e2d15b9 input=4a956fd91be30284]*/
 #endif
 
-#if CONDITION_E || CONDITION_F
+#if CONDITION_E || CONDITION_F
 #warning "different type of CPP directive"
 /*[clinic input]
 test_preprocessor_guarded_if_e_or_f
index 9d094a7b041276935501c4a1a2de85e050029f69..de81936b7456f202fca8aa755f2c1721124761a4 100644 (file)
@@ -1086,7 +1086,7 @@ class SelectorSocketTransportTests(test_utils.TestCase):
         self.assertFalse(self.protocol.connection_lost.called)
 
         self.loop.writers[7]._run()
-        # during this ^ run, the _resume_writing mock above was called and added more data
+        # during this ^ run, the _resume_writing mock above was called and added more data
 
         self.assertEqual(transport.get_write_buffer_size(), 2)
         self.loop.writers[7]._run()
index 9c66aebfbdc6dc8a392c483acdd9c6e42a3ca1e4..9ec5f4525c5d328f1752c9b0a43592fde669661d 100644 (file)
@@ -1386,7 +1386,7 @@ class ByteArrayTest(BaseBytesTest, unittest.TestCase):
         self.assertIsNone(ba.resize(10))
         self.assertEqual(ba, bytearray(b'\0' * 10))
 
-        # Subclass
+        # Subclass
         ba = ByteArraySubclass(b'abcdef')
         self.assertIsNone(ba.resize(3))
         self.assertEqual(ba, bytearray(b'abc'))
index cd65496cafb04de65ed9a6ef59bec13df8aac7d1..de54d06f305c20747df94df10d32ddc4103a6495 100644 (file)
@@ -51,7 +51,7 @@ INIT_LOOPS = 4
 MAX_HASH_SEED = 4294967295
 
 ABI_THREAD = 't' if sysconfig.get_config_var('Py_GIL_DISABLED') else ''
-# PLATSTDLIB_LANDMARK copied from Modules/getpath.py
+# PLATSTDLIB_LANDMARK copied from Modules/getpath.py
 if os.name == 'nt':
     PLATSTDLIB_LANDMARK = f'{sys.platlibdir}'
 else:
index 27c6d6664eda9e9d1963c7de38d115ac587a022d..f3b243d3c279e5c20c00188a1295e0dc09ed8495 100644 (file)
@@ -197,7 +197,7 @@ class TestReader(TestCase):
                 Event(evt="key", data="down", raw=bytearray(b"\x1bOB")),
                 Event(evt="key", data="\x05", raw=bytearray(b"\x1bO5")),
                 # a double new line in-block should terminate the block
-                # even if its followed by whitespace
+                # even if its followed by whitespace
                 Event(evt="key", data="\n", raw=bytearray(b"\n")),
                 Event(evt="key", data="\n", raw=bytearray(b"\n")),
             ],
index 87442dbbbd17f50aa6352c11134736b3f623f2a0..c3a1942b881ad46503efecfc542dcd7a1c257699 100644 (file)
@@ -415,7 +415,7 @@ Make opcodes :opcode:`!JUMP_IF_TRUE_OR_POP` and
 
 Replace the ``f_lasti`` member of the internal ``_PyInterpreterFrame``
 structure with a ``prev_instr`` pointer, which reduces overhead in the main
-interpreter loop. The ``f_lasti`` attribute of Python-layer frame objects is
+interpreter loop. The ``f_lasti`` attribute of Python-layer frame objects is
 preserved for backward-compatibility.
 
 ..