From: Matthias Klose Date: Thu, 11 Jan 2007 11:44:04 +0000 (+0000) Subject: - idle: Honor the "Cancel" action in the save dialog (Debian bug #299092). X-Git-Tag: v2.6a1~2293 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a398e2d0592464b6594bac0e4ee3ef091cce5159;p=python - idle: Honor the "Cancel" action in the save dialog (Debian bug #299092). --- diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index b69f06dc64..35771efaf5 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 diff --git a/Misc/NEWS b/Misc/NEWS index 564e3b1192..e671c72ef6 100644 --- 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 -----------------