Remvoed Debug variable

I removed this variable.

The default level now is 3, not 5.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-28 02:59:37 +02:00
parent 62209db06e
commit 0c58628c3b
2 changed files with 1 additions and 4 deletions

View File

@ -73,7 +73,6 @@ select_module = select
# Globals # Globals
CRLF = '\r\n' CRLF = '\r\n'
Debug = None # Backward compatibility
IMAP4_PORT = 143 IMAP4_PORT = 143
IMAP4_SSL_PORT = 993 IMAP4_SSL_PORT = 993
@ -2066,7 +2065,7 @@ class IMAP4(object):
def _init_debug(self, debug=None, debug_file=None, debug_buf_lvl=None): def _init_debug(self, debug=None, debug_file=None, debug_buf_lvl=None):
self.debug_lock = threading.Lock() 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_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) self.debug_buf_lvl = self._choose_nonull_or_dflt(DFLT_DEBUG_BUF_LVL, debug_buf_lvl)

View File

@ -299,8 +299,6 @@ class OfflineImap(object):
for dtype in debugtypes: for dtype in debugtypes:
dtype = dtype.strip() dtype = dtype.strip()
self.ui.add_debug(dtype) self.ui.add_debug(dtype)
if dtype.lower() == u'imap':
imaplib.Debug = 5
if options.runonce: if options.runonce:
# Must kill the possible default option. # Must kill the possible default option.