##// END OF EJS Templates
py3: call SMTP.docmd() with an str...
Denis Laxalde -
r43440:a1801ee9 default
parent child Browse files
Show More
@@ -52,7 +52,7 b' class STARTTLS(smtplib.SMTP):'
52 if not self.has_extn("starttls"):
52 if not self.has_extn("starttls"):
53 msg = b"STARTTLS extension not supported by server"
53 msg = b"STARTTLS extension not supported by server"
54 raise smtplib.SMTPException(msg)
54 raise smtplib.SMTPException(msg)
55 (resp, reply) = self.docmd(b"STARTTLS")
55 (resp, reply) = self.docmd("STARTTLS")
56 if resp == 220:
56 if resp == 220:
57 self.sock = sslutil.wrapsocket(
57 self.sock = sslutil.wrapsocket(
58 self.sock,
58 self.sock,
General Comments 0
You need to be logged in to leave comments. Login now