From 19c98dc2db1334bd3145fd3a924e821c6deb6fd6 Mon Sep 17 00:00:00 2001 From: Forest Date: Sun, 22 Sep 2024 19:52:14 +0000 Subject: [PATCH] imaplib: simplify & clarify idle debug message Co-authored-by: Peter Bierma --- Lib/imaplib.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/imaplib.py b/Lib/imaplib.py index 0ccb220868c9..25c3e017fe4b 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -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, -- 2.47.3