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

Method __exit__

Lib/test/test_ssl.py:2934–2944  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

2932 return self
2933
2934 def __exit__(self, *args):
2935 if support.verbose:
2936 sys.stdout.write(" cleanup: stopping server.\n")
2937 self.stop()
2938 if support.verbose:
2939 sys.stdout.write(" cleanup: joining server thread.\n")
2940 self.join()
2941 if support.verbose:
2942 sys.stdout.write(" cleanup: successfully joined.\n")
2943 # make sure that ConnectionHandler is removed from socket_map
2944 asyncore.close_all(ignore_all=True)
2945
2946 def start (self, flag=None):
2947 self.flag = flag

Callers

nothing calls this directly

Calls 3

stopMethod · 0.95
writeMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected