]> granicus.if.org Git - python/commitdiff
[3.6] bpo-31502: IDLE Configdialog again deletes custom themes and keysets. (GH-3634...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 18 Sep 2017 00:39:24 +0000 (17:39 -0700)
committerTerry Jan Reedy <tjreedy@udel.edu>
Mon, 18 Sep 2017 00:39:24 +0000 (20:39 -0400)
This reverses a never-released regression resulting from bpo-31287.
(cherry picked from commit 0efc7c67a2f8a184e93f9a491305c81ef2e24250)

Lib/idlelib/configdialog.py

index 7feae5d61998fbee26b091b5d0f6cdbbb924b5f7..0f530c66a111d65ec63da8082fa8344a1213c78c 100644 (file)
@@ -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.