]> granicus.if.org Git - python/commitdiff
- idle: Honor the "Cancel" action in the save dialog (Debian bug #299092).
authorMatthias Klose <doko@ubuntu.com>
Thu, 11 Jan 2007 11:42:43 +0000 (11:42 +0000)
committerMatthias Klose <doko@ubuntu.com>
Thu, 11 Jan 2007 11:42:43 +0000 (11:42 +0000)
Lib/idlelib/EditorWindow.py
Misc/NEWS

index 6b8ab63ddcf57d92d3359d751873d9753c1ba042..259c7f340e584da7312cbadebbeb95ee9063bc1f 100644 (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
 
index 87f162929036539070907c9b6a950ae299d3ed3c..d24dd4dfc138112124e7a5c7582e384dd3f45693 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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
 -----