- idle: Honor the "Cancel" action in the save dialog (Debian bug #299092).

This commit is contained in:
Matthias Klose 2007-01-11 11:42:43 +00:00
parent 1c3d0de472
commit 9e031c7c9d
2 changed files with 3 additions and 1 deletions

View file

@ -819,7 +819,7 @@ class EditorWindow(object):
def close(self):
reply = self.maybesave()
if reply != "cancel":
if str(reply) != "cancel":
self._close()
return reply

View file

@ -248,6 +248,8 @@ Tools/Demos
- Patch #1552024: add decorator support to unparse.py demo script.
- idle: Honor the "Cancel" action in the save dialog (Debian bug #299092).
Tests
-----