Skip to content

Commit 32c8840

Browse files
bpo-39600: Adjust code, add idlelib/NEWS item (GH-18449)
Complete previous patch. (cherry picked from commit 96ce227) Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent 78982f9 commit 32c8840

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 2019-12-16?
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)