From: Forest Date: Sun, 22 Sep 2024 22:11:49 +0000 (-0700) Subject: imaplib: convert private doc string to comment X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=48f6f760736a8346fa6649aea46acd4c4acc2378;p=thirdparty%2FPython%2Fcpython.git imaplib: convert private doc string to comment --- diff --git a/Lib/imaplib.py b/Lib/imaplib.py index 3300d34534bc..fec352e9b888 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -1476,17 +1476,17 @@ class _Idler: return bool(readables) def _pop(self, timeout, default=('', None)): - """Get the next response, or a default value on timeout - - :param timeout: Time limit (in seconds) to wait for response - :type timeout: int|float|None - :param default: Value to return on timeout - - Note: This method ignores 'dur' in favor of the timeout argument. - - Note: Windows IMAP4_stream connections will ignore the timeout - argument and block until the next response arrives, because - Windows select() only works on sockets.""" + # Get the next response, or a default value on timeout + # + # :param timeout: Time limit (in seconds) to wait for response + # :type timeout: int|float|None + # :param default: Value to return on timeout + # + # Note: This method ignores 'dur' in favor of the timeout argument. + # + # Note: Windows IMAP4_stream connections will ignore the timeout + # argument and block until the next response arrives, because + # Windows select() only works on sockets. imap = self._imap if imap.state != 'IDLING':