]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
- idle: Honor the "Cancel" action in the save dialog (Debian bug #299092).
authorMatthias Klose <doko@ubuntu.com>
Thu, 11 Jan 2007 11:40:28 +0000 (11:40 +0000)
committerMatthias Klose <doko@ubuntu.com>
Thu, 11 Jan 2007 11:40:28 +0000 (11:40 +0000)
Lib/idlelib/EditorWindow.py
Misc/NEWS

index 0ab148a90fe2d39bd05fcb72c478abbf8a360fd8..4883f2d3c0dd5390361e1c6657627edf635c3b29 100644 (file)
@@ -703,7 +703,7 @@ class EditorWindow:
 
     def close(self):
         reply = self.maybesave()
-        if reply != "cancel":
+        if str(reply) != "cancel":
             self._close()
         return reply
 
index 1f36ca82f6dda820f90c140a69a46ce8347cac3f..ff711adf745ceea1294913638add27a16912b5a6 100644 (file)
--- 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
 -----