]> 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:44:04 +0000 (11:44 +0000)
committerMatthias Klose <doko@ubuntu.com>
Thu, 11 Jan 2007 11:44:04 +0000 (11:44 +0000)
Lib/idlelib/EditorWindow.py
Misc/NEWS

index b69f06dc6447389b928e5db586f7a4d7a15efc5f..35771efaf57d3ac2ecd8e4105d0522a055300b43 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 564e3b11920c00b407b07952f9f289938423e99a..e671c72ef61d245fc821ccf91b757926f548be25 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -286,6 +286,8 @@ Library
 - fixed a bug with bsddb.DB.stat: the flags and txn keyword arguments
   were transposed.
 
+- idle: Honor the "Cancel" action in the save dialog (Debian bug #299092).
+
 
 Extension Modules
 -----------------