mirror of https://github.com/python/cpython
- idle: Honor the "Cancel" action in the save dialog (Debian bug #299092).
This commit is contained in:
parent
764a7ec8ca
commit
a398e2d059
|
@ -819,7 +819,7 @@ class EditorWindow(object):
|
|||
|
||||
def close(self):
|
||||
reply = self.maybesave()
|
||||
if reply != "cancel":
|
||||
if str(reply) != "cancel":
|
||||
self._close()
|
||||
return reply
|
||||
|
||||
|
|
Loading…
Reference in New Issue