From 1223a402af5de8c8bae629a8b01c66d87396d591 Mon Sep 17 00:00:00 2001 From: Matthias Klose Date: Thu, 11 Jan 2007 11:40:28 +0000 Subject: - idle: Honor the "Cancel" action in the save dialog (Debian bug #299092). --- Lib/idlelib/EditorWindow.py | 2 +- Misc/NEWS | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 0ab148a..4883f2d 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 1f36ca8..ff711ad 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 ----- -- cgit v0.12