From a398e2d0592464b6594bac0e4ee3ef091cce5159 Mon Sep 17 00:00:00 2001 From: Matthias Klose Date: Thu, 11 Jan 2007 11:44:04 +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 b69f06d..35771ef 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 564e3b1..e671c72 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 ----------------- -- cgit v0.12