mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +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
|
|
@ -1227,7 +1227,7 @@ class DocTestRunner:
|
|||
`OutputChecker` to the constructor.
|
||||
|
||||
The test runner's display output can be controlled in two ways.
|
||||
First, an output function (`out) can be passed to
|
||||
First, an output function (`out`) can be passed to
|
||||
`TestRunner.run`; this function will be called with strings that
|
||||
should be displayed. It defaults to `sys.stdout.write`. If
|
||||
capturing the output is not sufficient, then the display output
|
||||
|
|
@ -2734,7 +2734,7 @@ def testsource(module, name):
|
|||
return testsrc
|
||||
|
||||
def debug_src(src, pm=False, globs=None):
|
||||
"""Debug a single doctest docstring, in argument `src`'"""
|
||||
"""Debug a single doctest docstring, in argument `src`"""
|
||||
testsrc = script_from_examples(src)
|
||||
debug_script(testsrc, pm, globs)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue