bpo-39600: Adjust code, add idlelib/NEWS item (GH-18449)

Complete previous patch.
(cherry picked from commit 96ce227067)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
Miss Islington (bot) 2020-02-10 17:28:03 -08:00 committed by GitHub
parent 78982f94fa
commit 32c88407d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View 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.

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