]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39600: Adjust code, add idlelib/NEWS item (GH-18449)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 11 Feb 2020 01:28:03 +0000 (17:28 -0800)
committerGitHub <noreply@github.com>
Tue, 11 Feb 2020 01:28:03 +0000 (17:28 -0800)
Complete previous patch.
(cherry picked from commit 96ce22706735779cf8cc46eaaa5ac61359364b5a)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Lib/idlelib/NEWS.txt
Lib/idlelib/configdialog.py

index 2afbe82277ee9f36883a29ee4d0dd799c91dab66..3b1168693c4b5123bc9b13c725a18a0c7be25f82 100644 (file)
@@ -3,6 +3,8 @@ Released on 2019-12-16?
 ======================================
 
 
+bpo-39600: Remove duplicate font names from configuration list.
+
 bpo-38792: Close a shell calltip if a :exc:`KeyboardInterrupt`
 or shell restart occurs.  Patch by Zackery Spytz.
 
index 7b844f00e7736d7e903758f2d1af5c634f589702..9d5c2cde04b2404e5c72f61d33cd1321543b7402 100644 (file)
@@ -606,10 +606,8 @@ class FontPage(Frame):
         font_size = configured_font[1]
         font_bold  = configured_font[2]=='bold'
 
-        # Set editor font selection list and font_name.
-        fonts = tkFont.families(self)
-        # remove duplicated names and sort
-        fonts = sorted(set(fonts))
+        # Set sorted no-duplicate editor font selection list and font_name.
+        fonts = sorted(set(tkFont.families(self)))
         for font in fonts:
             self.fontlist.insert(END, font)
         self.font_name.set(font_name)