Skip to content

Commit

Permalink
WIP/fix(imaplib): noop debug (26543 bug)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankostis committed Aug 9, 2019
1 parent 9274340 commit 2b99cec
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions Lib/imaplib.py
Expand Up @@ -1209,13 +1209,11 @@ def _mesg(self, s, secs=None):
sys.stderr.write(' %s.%02d %s\n' % (tm, (secs*100)%100, s))
sys.stderr.flush()

def _dump_ur(self, dict):
# Dump untagged responses (in `dict').
l = dict.items()
if not l: return
t = '\n\t\t'
l = map(lambda x:'%s: "%s"' % (x[0], x[1][0] and '" "'.join(x[1]) or ''), l)
self._mesg('untagged responses dump:%s%s' % (t, t.join(l)))
def _dump_ur(self, d): # @ReservedAssignment
# Dump untagged responses (in `d').
if d:
self._mesg('untagged responses dump:' +
''.join('\n\t\t%s: %r' % x for x in d.items()))

def _log(self, line):
# Keep log of last `_cmd_log_len' interactions for debugging.
Expand All @@ -1232,11 +1230,6 @@ def print_log(self):
self._mesg(*self._cmd_log[i])
except:
pass
i += 1
if i >= self._cmd_log_len:
i = 0
n -= 1


if HAVE_SSL:

Expand Down

0 comments on commit 2b99cec

Please sign in to comment.