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

Method close_hook

Lib/idlelib/editor.py:765–768  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

763 return line.startswith('#!') and 'python' in line
764
765 def close_hook(self):
766 if self.flist:
767 self.flist.unregister_maybe_terminate(self)
768 self.flist = None
769
770 def set_close_hook(self, close_hook):
771 self.close_hook = close_hook

Callers 1

_closeMethod · 0.95

Calls 1

Tested by

no test coverage detected