]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
imaplib: simplify & clarify idle debug message
authorForest <foresto@users.noreply.github.com>
Sun, 22 Sep 2024 19:52:14 +0000 (19:52 +0000)
committerGitHub <noreply@github.com>
Sun, 22 Sep 2024 19:52:14 +0000 (19:52 +0000)
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Lib/imaplib.py

index 0ccb220868c95e8b3cf1c14c4d7dbe923c2a4f47..25c3e017fe4be254e9e56a02fd2d2735638731d2 100644 (file)
@@ -1407,8 +1407,7 @@ class _Idler:
         assert not (imap._idle_responses or imap._idle_capture)
 
         if __debug__ and imap.debug >= 4:
-            imap._mesg('idle start'
-                       + ('' if self._dur is None else f' dur={self._dur}'))
+            imap._mesg(f'idle start duration={self._dur}')
 
         try:
             # Start capturing untagged responses before sending IDLE,