summaryrefslogtreecommitdiff
path: root/Lib/idlelib/EditorWindow.py
diff options
context:
space:
mode:
authorMatthias Klose <doko@ubuntu.com>2007-01-11 11:42:43 +0000
committerMatthias Klose <doko@ubuntu.com>2007-01-11 11:42:43 +0000
commit9e031c7c9dac1b087a38dbc3555bbbe56a8097fb (patch)
tree3651d551c8362148f0f9448bda1007dbdb8fb54e /Lib/idlelib/EditorWindow.py
parent1c3d0de47264e6bdfa296067294b7c66592f5a2f (diff)
downloadcpython-git-9e031c7c9dac1b087a38dbc3555bbbe56a8097fb.tar.gz
- idle: Honor the "Cancel" action in the save dialog (Debian bug #299092).
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r--Lib/idlelib/EditorWindow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index 6b8ab63ddc..259c7f340e 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -819,7 +819,7 @@ class EditorWindow(object):
def close(self):
reply = self.maybesave()
- if reply != "cancel":
+ if str(reply) != "cancel":
self._close()
return reply