mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Remove almost all unpaired backticks in docstrings (#119231)
As reported in #117847 and #115366, an unpaired backtick in a docstring tends to confuse e.g. Sphinx running on subclasses of standard library objects, and the typographic style of using a backtick as an opening quote is no longer in favor. Convert almost all uses of the form The variable `foo' should do xyz to The variable 'foo' should do xyz and also fix up miscellaneous other unpaired backticks (extraneous / missing characters). No functional change is intended here other than in human-readable docstrings.
This commit is contained in:
parent
81865002ae
commit
ef172521a9
39 changed files with 172 additions and 172 deletions
|
@ -1481,7 +1481,7 @@ class BarrierTests(unittest.IsolatedAsyncioTestCase):
|
|||
# wait again only for rewait tasks
|
||||
await barrier.wait()
|
||||
else:
|
||||
# wait for end of draining state`
|
||||
# wait for end of draining state
|
||||
await barrier_nowaiting.wait()
|
||||
# wait for other waiting tasks
|
||||
await barrier.wait()
|
||||
|
@ -1780,7 +1780,7 @@ class BarrierTests(unittest.IsolatedAsyncioTestCase):
|
|||
self.assertEqual(barrier.n_waiting, 0)
|
||||
|
||||
async def test_abort_barrier_when_exception_then_resetting(self):
|
||||
# test from threading.Barrier: see `lock_tests.test_abort_and_reset``
|
||||
# test from threading.Barrier: see `lock_tests.test_abort_and_reset`
|
||||
barrier1 = asyncio.Barrier(self.N)
|
||||
barrier2 = asyncio.Barrier(self.N)
|
||||
results1 = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue