Replace non-breaking spaces with normal spaces (#130116)
Using normal spaces in place of non-breaking spaces.
This commit is contained in:
@@ -119,10 +119,10 @@ stderr. Add the `-v` option to also show Gradle output, and non-Python logcat
|
|||||||
messages.
|
messages.
|
||||||
|
|
||||||
Any other arguments on the `android.py test` command line will be passed through
|
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
|
See the [Python Developer's
|
||||||
Guide](https://devguide.python.org/testing/run-write-tests/) for common options
|
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`.
|
such as `-j`.
|
||||||
|
|
||||||
Every time you run `android.py test`, changes in pure-Python files in the
|
Every time you run `android.py test`, changes in pure-Python files in the
|
||||||
|
|||||||
@@ -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``
|
``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``
|
``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('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``
|
||||||
============================================== =============================================================
|
============================================== =============================================================
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1148,7 +1148,7 @@ Connection objects
|
|||||||
the *remaining* number of pages still to be copied,
|
the *remaining* number of pages still to be copied,
|
||||||
and the *total* number of pages.
|
and the *total* number of pages.
|
||||||
Defaults to ``None``.
|
Defaults to ``None``.
|
||||||
:type progress: :term:`callback` | None
|
:type progress: :term:`callback` | None
|
||||||
|
|
||||||
:param str name:
|
:param str name:
|
||||||
The name of the database to back up.
|
The name of the database to back up.
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
when researching a change.
|
when researching a change.
|
||||||
|
|
||||||
This article explains the new features in Python 3.1, compared to 3.0.
|
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
|
PEP 372: Ordered Dictionaries
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
when researching a change.
|
when researching a change.
|
||||||
|
|
||||||
This article explains the new features in Python 3.5, compared to 3.4.
|
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
|
`changelog <https://docs.python.org/3.5/whatsnew/changelog.html>`_ for a full
|
||||||
list of changes.
|
list of changes.
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
when researching a change.
|
when researching a change.
|
||||||
|
|
||||||
This article explains the new features in Python 3.6, compared to 3.5.
|
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
|
`changelog <https://docs.python.org/3.6/whatsnew/changelog.html>`_ for a full
|
||||||
list of changes.
|
list of changes.
|
||||||
|
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ snippet decode a complete instruction:
|
|||||||
For various reasons we'll get to later (mostly efficiency, given that `EXTENDED_ARG`
|
For various reasons we'll get to later (mostly efficiency, given that `EXTENDED_ARG`
|
||||||
is rare) the actual code is different.
|
is rare) the actual code is different.
|
||||||
|
|
||||||
## Jumps
|
## Jumps
|
||||||
|
|
||||||
Note that when the `switch` statement is reached, `next_instr` (the "instruction offset")
|
Note that when the `switch` statement is reached, `next_instr` (the "instruction offset")
|
||||||
already points to the next instruction.
|
already points to the next instruction.
|
||||||
|
|||||||
@@ -3976,7 +3976,7 @@ test_preprocessor_guarded_if_with_continuation_impl(PyObject *module)
|
|||||||
/*[clinic end generated code: output=3d0712ca9e2d15b9 input=4a956fd91be30284]*/
|
/*[clinic end generated code: output=3d0712ca9e2d15b9 input=4a956fd91be30284]*/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONDITION_E || CONDITION_F
|
#if CONDITION_E || CONDITION_F
|
||||||
#warning "different type of CPP directive"
|
#warning "different type of CPP directive"
|
||||||
/*[clinic input]
|
/*[clinic input]
|
||||||
test_preprocessor_guarded_if_e_or_f
|
test_preprocessor_guarded_if_e_or_f
|
||||||
|
|||||||
@@ -1086,7 +1086,7 @@ class SelectorSocketTransportTests(test_utils.TestCase):
|
|||||||
self.assertFalse(self.protocol.connection_lost.called)
|
self.assertFalse(self.protocol.connection_lost.called)
|
||||||
|
|
||||||
self.loop.writers[7]._run()
|
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.assertEqual(transport.get_write_buffer_size(), 2)
|
||||||
self.loop.writers[7]._run()
|
self.loop.writers[7]._run()
|
||||||
|
|||||||
@@ -1386,7 +1386,7 @@ class ByteArrayTest(BaseBytesTest, unittest.TestCase):
|
|||||||
self.assertIsNone(ba.resize(10))
|
self.assertIsNone(ba.resize(10))
|
||||||
self.assertEqual(ba, bytearray(b'\0' * 10))
|
self.assertEqual(ba, bytearray(b'\0' * 10))
|
||||||
|
|
||||||
# Subclass
|
# Subclass
|
||||||
ba = ByteArraySubclass(b'abcdef')
|
ba = ByteArraySubclass(b'abcdef')
|
||||||
self.assertIsNone(ba.resize(3))
|
self.assertIsNone(ba.resize(3))
|
||||||
self.assertEqual(ba, bytearray(b'abc'))
|
self.assertEqual(ba, bytearray(b'abc'))
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ INIT_LOOPS = 4
|
|||||||
MAX_HASH_SEED = 4294967295
|
MAX_HASH_SEED = 4294967295
|
||||||
|
|
||||||
ABI_THREAD = 't' if sysconfig.get_config_var('Py_GIL_DISABLED') else ''
|
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':
|
if os.name == 'nt':
|
||||||
PLATSTDLIB_LANDMARK = f'{sys.platlibdir}'
|
PLATSTDLIB_LANDMARK = f'{sys.platlibdir}'
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ class TestReader(TestCase):
|
|||||||
Event(evt="key", data="down", raw=bytearray(b"\x1bOB")),
|
Event(evt="key", data="down", raw=bytearray(b"\x1bOB")),
|
||||||
Event(evt="key", data="\x05", raw=bytearray(b"\x1bO5")),
|
Event(evt="key", data="\x05", raw=bytearray(b"\x1bO5")),
|
||||||
# a double new line in-block should terminate the block
|
# 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")),
|
||||||
Event(evt="key", data="\n", raw=bytearray(b"\n")),
|
Event(evt="key", data="\n", raw=bytearray(b"\n")),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -415,7 +415,7 @@ Make opcodes :opcode:`!JUMP_IF_TRUE_OR_POP` and
|
|||||||
|
|
||||||
Replace the ``f_lasti`` member of the internal ``_PyInterpreterFrame``
|
Replace the ``f_lasti`` member of the internal ``_PyInterpreterFrame``
|
||||||
structure with a ``prev_instr`` pointer, which reduces overhead in the main
|
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.
|
preserved for backward-compatibility.
|
||||||
|
|
||||||
..
|
..
|
||||||
|
|||||||
Reference in New Issue
Block a user