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

Method maybesave

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

Source from the content-addressed store, hash-verified

1075 return "break"
1076
1077 def maybesave(self):
1078 if self.io:
1079 if not self.get_saved():
1080 if self.top.state()!='normal':
1081 self.top.deiconify()
1082 self.top.lower()
1083 self.top.lift()
1084 return self.io.maybesave()
1085
1086 def close(self):
1087 try:

Callers 1

closeMethod · 0.95

Calls 3

get_savedMethod · 0.95
stateMethod · 0.45
lowerMethod · 0.45

Tested by

no test coverage detected