[Python-checkins] [3.6] bpo-31502: IDLE Configdialog again deletes custom themes and keysets. (GH-3634) (#3636)

Terry Jan Reedy webhook-mailer at python.org
Sun Sep 17 20:39:26 EDT 2017


https://github.com/python/cpython/commit/6b4d8ba0971355027b8981a45a0a62ac1ef9a456
commit: 6b4d8ba0971355027b8981a45a0a62ac1ef9a456
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Terry Jan Reedy <tjreedy at udel.edu>
date: 2017-09-17T20:39:24-04:00
summary:

[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)

files:
M Lib/idlelib/configdialog.py

diff --git a/Lib/idlelib/configdialog.py b/Lib/idlelib/configdialog.py
index 7feae5d6199..0f530c66a11 100644
--- a/Lib/idlelib/configdialog.py
+++ b/Lib/idlelib/configdialog.py
@@ -1237,7 +1237,7 @@ def save_new(self, theme_name, theme):
 
     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 @@ def save_new_key_set(keyset_name, keyset):
 
     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.



More information about the Python-checkins mailing list