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

Method close

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

Source from the content-addressed store, hash-verified

1084 return self.io.maybesave()
1085
1086 def close(self):
1087 try:
1088 reply = self.maybesave()
1089 if str(reply) != "cancel":
1090 self._close()
1091 return reply
1092 except AttributeError: # bpo-35379: close called twice
1093 pass
1094
1095 def _close(self):
1096 if self.io.filename:

Callers 3

close_eventMethod · 0.95
_closeMethod · 0.45
unload_extensionsMethod · 0.45

Calls 3

maybesaveMethod · 0.95
_closeMethod · 0.95
strFunction · 0.85

Tested by

no test coverage detected