mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +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
|
@ -2,8 +2,8 @@
|
|||
|
||||
This module helps scripts to parse the command line arguments in
|
||||
sys.argv. It supports the same conventions as the Unix getopt()
|
||||
function (including the special meanings of arguments of the form `-'
|
||||
and `--'). Long options similar to those supported by GNU software
|
||||
function (including the special meanings of arguments of the form '-'
|
||||
and '--'). Long options similar to those supported by GNU software
|
||||
may be used as well via an optional third argument. This module
|
||||
provides two functions and an exception:
|
||||
|
||||
|
@ -105,7 +105,7 @@ def gnu_getopt(args, shortopts, longopts = []):
|
|||
processing options as soon as a non-option argument is
|
||||
encountered.
|
||||
|
||||
If the first character of the option string is `+', or if the
|
||||
If the first character of the option string is '+', or if the
|
||||
environment variable POSIXLY_CORRECT is set, then option
|
||||
processing stops as soon as a non-option argument is encountered.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue