]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
imaplib: add comment in Idler._pop()
authorForest <foresto@users.noreply.github.com>
Mon, 23 Sep 2024 22:25:28 +0000 (22:25 +0000)
committerGitHub <noreply@github.com>
Mon, 23 Sep 2024 22:25:28 +0000 (22:25 +0000)
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Lib/imaplib.py

index 596b3d3f34da8f02025470b832b7cb80f041918e..1ae2dee224c833642d1948ad4574802232586e8e 100644 (file)
@@ -1508,6 +1508,7 @@ class Idler:
             raise imap.error('_pop() only works during IDLE')
 
         if imap._idle_responses:
+            # Response is ready to return to the user
             resp = imap._idle_responses.pop(0)
             if __debug__ and imap.debug >= 4:
                 imap._mesg(f'idle _pop({timeout}) de-queued {resp[0]}')