MCPcopy Index your code
hub / github.com/python/cpython / __exit__

Method __exit__

Lib/smtplib.py:287–295  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

285 return self
286
287 def __exit__(self, *args):
288 try:
289 code, message = self.docmd("QUIT")
290 if code != 221:
291 raise SMTPResponseException(code, message)
292 except SMTPServerDisconnected:
293 pass
294 finally:
295 self.close()
296
297 def set_debuglevel(self, debuglevel):
298 """Set the debug output level.

Callers

nothing calls this directly

Calls 3

docmdMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected