MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __exit__

Method __exit__

tools/python-3.11.9-amd64/Lib/smtplib.py:280–288  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

278 return self
279
280 def __exit__(self, *args):
281 try:
282 code, message = self.docmd("QUIT")
283 if code != 221:
284 raise SMTPResponseException(code, message)
285 except SMTPServerDisconnected:
286 pass
287 finally:
288 self.close()
289
290 def set_debuglevel(self, debuglevel):
291 """Set the debug output level.

Callers

nothing calls this directly

Calls 3

docmdMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected