]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
comment -> docstring
authorGregory P. Smith <greg@krypto.org>
Sat, 21 Sep 2024 17:47:50 +0000 (10:47 -0700)
committerGitHub <noreply@github.com>
Sat, 21 Sep 2024 17:47:50 +0000 (10:47 -0700)
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Lib/imaplib.py

index 7bcbe4912191d83f1d5c2c1c6d20b8df9b6ec714..0ccb220868c95e8b3cf1c14c4d7dbe923c2a4f47 100644 (file)
@@ -1472,17 +1472,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':