summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Klose <doko@ubuntu.com>2007-01-11 11:40:28 (GMT)
committerMatthias Klose <doko@ubuntu.com>2007-01-11 11:40:28 (GMT)
commit1223a402af5de8c8bae629a8b01c66d87396d591 (patch)
tree5ea63e9cabbd89135d265ea66db8cc207300ab8c
parentdbc68267e8194b47feaea72427ebdee6f830f105 (diff)
downloadcpython-1223a402af5de8c8bae629a8b01c66d87396d591.zip
cpython-1223a402af5de8c8bae629a8b01c66d87396d591.tar.gz
cpython-1223a402af5de8c8bae629a8b01c66d87396d591.tar.bz2
- idle: Honor the "Cancel" action in the save dialog (Debian bug #299092).
-rw-r--r--Lib/idlelib/EditorWindow.py2
-rw-r--r--Misc/NEWS2
2 files changed, 3 insertions, 1 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index 0ab148a..4883f2d 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -703,7 +703,7 @@ class EditorWindow:
def close(self):
reply = self.maybesave()
- if reply != "cancel":
+ if str(reply) != "cancel":
self._close()
return reply
diff --git a/Misc/NEWS b/Misc/NEWS
index 1f36ca8..ff711ad 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -24,6 +24,8 @@ Extension Modules
Library
-------
+- idle: Honor the "Cancel" action in the save dialog (Debian bug #299092).
+
Tests
-----