From 0c58628c3bf7f71688426067d58c2a1e7c01f034 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Fri, 28 Aug 2020 02:59:37 +0200 Subject: [PATCH] Remvoed Debug variable I removed this variable. The default level now is 3, not 5. --- offlineimap/bundled_imaplib2.py | 3 +-- offlineimap/init.py | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/offlineimap/bundled_imaplib2.py b/offlineimap/bundled_imaplib2.py index 76a8f69..4312b57 100644 --- a/offlineimap/bundled_imaplib2.py +++ b/offlineimap/bundled_imaplib2.py @@ -73,7 +73,6 @@ select_module = select # Globals CRLF = '\r\n' -Debug = None # Backward compatibility IMAP4_PORT = 143 IMAP4_SSL_PORT = 993 @@ -2066,7 +2065,7 @@ class IMAP4(object): def _init_debug(self, debug=None, debug_file=None, debug_buf_lvl=None): self.debug_lock = threading.Lock() - self.debug = self._choose_nonull_or_dflt(0, debug, Debug) + self.debug = self._choose_nonull_or_dflt(0, debug) self.debug_file = self._choose_nonull_or_dflt(sys.stderr, debug_file) self.debug_buf_lvl = self._choose_nonull_or_dflt(DFLT_DEBUG_BUF_LVL, debug_buf_lvl) diff --git a/offlineimap/init.py b/offlineimap/init.py index 80158bd..b2ca3a5 100644 --- a/offlineimap/init.py +++ b/offlineimap/init.py @@ -299,8 +299,6 @@ class OfflineImap(object): for dtype in debugtypes: dtype = dtype.strip() self.ui.add_debug(dtype) - if dtype.lower() == u'imap': - imaplib.Debug = 5 if options.runonce: # Must kill the possible default option.