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

Method _rset

Lib/smtplib.py:518–528  ·  view source on GitHub ↗

Internal 'rset' command which ignores any SMTPServerDisconnected error. Used internally in the library, since the server disconnected error should appear to the application when the *next* command is issued, if we are doing an internal "safety" reset.

(self)

Source from the content-addressed store, hash-verified

516 return self.docmd("rset")
517
518 def _rset(self):
519 """Internal 'rset' command which ignores any SMTPServerDisconnected error.
520
521 Used internally in the library, since the server disconnected error
522 should appear to the application when the *next* command is issued, if
523 we are doing an internal "safety" reset.
524 """
525 try:
526 self.rset()
527 except SMTPServerDisconnected:
528 pass
529
530 def noop(self):
531 """SMTP 'noop' command -- doesn't do anything :>"""

Callers 1

sendmailMethod · 0.95

Calls 1

rsetMethod · 0.95

Tested by

no test coverage detected