mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -1745,8 +1745,8 @@ class ZipFile:
|
|||
def extract(self, member, path=None, pwd=None):
|
||||
"""Extract a member from the archive to the current working directory,
|
||||
using its full name. Its file information is extracted as accurately
|
||||
as possible. `member' may be a filename or a ZipInfo object. You can
|
||||
specify a different directory using `path'. You can specify the
|
||||
as possible. 'member' may be a filename or a ZipInfo object. You can
|
||||
specify a different directory using 'path'. You can specify the
|
||||
password to decrypt the file using 'pwd'.
|
||||
"""
|
||||
if path is None:
|
||||
|
@ -1758,8 +1758,8 @@ class ZipFile:
|
|||
|
||||
def extractall(self, path=None, members=None, pwd=None):
|
||||
"""Extract all members from the archive to the current working
|
||||
directory. `path' specifies a different directory to extract to.
|
||||
`members' is optional and must be a subset of the list returned
|
||||
directory. 'path' specifies a different directory to extract to.
|
||||
'members' is optional and must be a subset of the list returned
|
||||
by namelist(). You can specify the password to decrypt all files
|
||||
using 'pwd'.
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue