mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59: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
|
@ -239,7 +239,7 @@ class IMAP4:
|
|||
if __debug__:
|
||||
self._cmd_log_len = 10
|
||||
self._cmd_log_idx = 0
|
||||
self._cmd_log = {} # Last `_cmd_log_len' interactions
|
||||
self._cmd_log = {} # Last '_cmd_log_len' interactions
|
||||
if self.debug >= 1:
|
||||
self._mesg('imaplib version %s' % __version__)
|
||||
self._mesg('new IMAP4 connection, tag=%s' % self.tagpre)
|
||||
|
@ -396,7 +396,7 @@ class IMAP4:
|
|||
|
||||
(typ, [data]) = <instance>.append(mailbox, flags, date_time, message)
|
||||
|
||||
All args except `message' can be None.
|
||||
All args except 'message' can be None.
|
||||
"""
|
||||
name = 'APPEND'
|
||||
if not mailbox:
|
||||
|
@ -927,7 +927,7 @@ class IMAP4:
|
|||
|
||||
(typ, [data]) = <instance>.xatom(name, arg, ...)
|
||||
|
||||
Returns response appropriate to extension command `name'.
|
||||
Returns response appropriate to extension command 'name'.
|
||||
"""
|
||||
name = name.upper()
|
||||
#if not name in self.capabilities: # Let the server decide!
|
||||
|
@ -1167,7 +1167,7 @@ class IMAP4:
|
|||
# Some have reported "unexpected response" exceptions.
|
||||
# Note that ignoring them here causes loops.
|
||||
# Instead, send me details of the unexpected response and
|
||||
# I'll update the code in `_get_response()'.
|
||||
# I'll update the code in '_get_response()'.
|
||||
|
||||
try:
|
||||
self._get_response()
|
||||
|
@ -1259,7 +1259,7 @@ class IMAP4:
|
|||
self._mesg('untagged responses dump:' + '\n\t\t'.join(items))
|
||||
|
||||
def _log(self, line):
|
||||
# Keep log of last `_cmd_log_len' interactions for debugging.
|
||||
# Keep log of last '_cmd_log_len' interactions for debugging.
|
||||
self._cmd_log[self._cmd_log_idx] = (line, time.time())
|
||||
self._cmd_log_idx += 1
|
||||
if self._cmd_log_idx >= self._cmd_log_len:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue