From: Matthias Klose Date: Thu, 11 Jan 2007 11:42:43 +0000 (+0000) Subject: - idle: Honor the "Cancel" action in the save dialog (Debian bug #299092). X-Git-Tag: v2.5.1c1~173 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e031c7c9dac1b087a38dbc3555bbbe56a8097fb;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 6b8ab63ddcf5..259c7f340e58 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 87f162929036..d24dd4dfc138 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -248,6 +248,8 @@ Tools/Demos - Patch #1552024: add decorator support to unparse.py demo script. +- idle: Honor the "Cancel" action in the save dialog (Debian bug #299092). + Tests -----