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

Method save_a_copy

Lib/idlelib/iomenu.py:232–238  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

230 return "break"
231
232 def save_a_copy(self, event):
233 filename = self.asksavefile()
234 if filename:
235 self.writefile(filename)
236 self.text.focus_set()
237 self.updaterecentfileslist(filename)
238 return "break"
239
240 def writefile(self, filename):
241 text = self.fixnewlines()

Callers

nothing calls this directly

Calls 4

asksavefileMethod · 0.95
writefileMethod · 0.95
updaterecentfileslistMethod · 0.95
focus_setMethod · 0.45

Tested by

no test coverage detected