From: Matthias Klose Date: Thu, 11 Jan 2007 11:40:28 +0000 (+0000) Subject: - idle: Honor the "Cancel" action in the save dialog (Debian bug #299092). X-Git-Tag: v2.4.5c1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1223a402af5de8c8bae629a8b01c66d87396d591;p=thirdparty%2FPython%2Fcpython.git - 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 0ab148a90fe2..4883f2d3c0dd 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 1f36ca82f6dd..ff711adf745c 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 -----