Skip to content

Commit 96ce227

Browse files
authored
bpo-39600: Adjust code, add idlelib/NEWS item (GH-18449)
Complete previous patch.
1 parent 038770e commit 96ce227

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Lib/idlelib/NEWS.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Released on 2020-10-05?
33
======================================
44

55

6+
bpo-39600: Remove duplicate font names from configuration list.
7+
68
bpo-38792: Close a shell calltip if a :exc:`KeyboardInterrupt`
79
or shell restart occurs. Patch by Zackery Spytz.
810

Lib/idlelib/configdialog.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -606,10 +606,8 @@ def load_font_cfg(self):
606606
font_size = configured_font[1]
607607
font_bold = configured_font[2]=='bold'
608608

609-
# Set editor font selection list and font_name.
610-
fonts = tkFont.families(self)
611-
# remove duplicated names and sort
612-
fonts = sorted(set(fonts))
609+
# Set sorted no-duplicate editor font selection list and font_name.
610+
fonts = sorted(set(tkFont.families(self)))
613611
for font in fonts:
614612
self.fontlist.insert(END, font)
615613
self.font_name.set(font_name)

0 commit comments

Comments
 (0)