There are doubtless other debug messages in smtplib that would trigger an
error if they were tested, but this fixes the things we do now test,
which is good enough for now.
self.file = None
(code, msg) = self.getreply()
if self.debuglevel > 0:
- self._print_debug('connect:', msg)
+ self._print_debug('connect:', repr(msg))
return (code, msg)
def send(self, s):
errmsg = b"\n".join(resp)
if self.debuglevel > 0:
- self._print_debug('reply: retcode (%s); Msg: %s' % (errcode, errmsg))
+ self._print_debug('reply: retcode (%s); Msg: %a' % (errcode, errmsg))
return errcode, errmsg
def docmd(self, cmd, args=""):