MCPcopy Index your code
hub / github.com/RustPython/RustPython / __exit__

Method __exit__

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

Source from the content-addressed store, hash-verified

2653 return self
2654
2655 def __exit__(self, *args):
2656 if support.verbose:
2657 sys.stdout.write(" cleanup: stopping server.\n")
2658 self.stop()
2659 if support.verbose:
2660 sys.stdout.write(" cleanup: joining server thread.\n")
2661 self.join()
2662 if support.verbose:
2663 sys.stdout.write(" cleanup: successfully joined.\n")
2664 # make sure that ConnectionHandler is removed from socket_map
2665 asyncore.close_all(ignore_all=True)
2666
2667 def start (self, flag=None):
2668 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