From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 18 Sep 2017 00:39:24 +0000 (-0700) Subject: [3.6] bpo-31502: IDLE Configdialog again deletes custom themes and keysets. (GH-3634... X-Git-Tag: v3.6.3rc1~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b4d8ba0971355027b8981a45a0a62ac1ef9a456;p=python [3.6] bpo-31502: IDLE Configdialog again deletes custom themes and keysets. (GH-3634) (#3636) This reverses a never-released regression resulting from bpo-31287. (cherry picked from commit 0efc7c67a2f8a184e93f9a491305c81ef2e24250) --- diff --git a/Lib/idlelib/configdialog.py b/Lib/idlelib/configdialog.py index 7feae5d619..0f530c66a1 100644 --- a/Lib/idlelib/configdialog.py +++ b/Lib/idlelib/configdialog.py @@ -1237,7 +1237,7 @@ class HighPage(Frame): def askyesno(self, *args, **kwargs): # Make testing easier. Could change implementation. - messagebox.askyesno(*args, **kwargs) + return messagebox.askyesno(*args, **kwargs) def delete_custom(self): """Handle event to delete custom theme. @@ -1683,7 +1683,7 @@ class KeysPage(Frame): def askyesno(self, *args, **kwargs): # Make testing easier. Could change implementation. - messagebox.askyesno(*args, **kwargs) + return messagebox.askyesno(*args, **kwargs) def delete_custom_keys(self): """Handle event to delete a custom key set.