[Python-checkins] cpython (3.2): Issue #10997: Prevent a duplicate entry in IDLE's "Recent Files" menu.
ned.deily
python-checkins at python.org
Tue May 29 19:52:18 CEST 2012
http://hg.python.org/cpython/rev/64a7fae544a6
changeset: 77234:64a7fae544a6
branch: 3.2
parent: 77210:47e6217d0e84
user: Ned Deily <nad at acm.org>
date: Tue May 29 10:43:36 2012 -0700
summary:
Issue #10997: Prevent a duplicate entry in IDLE's "Recent Files" menu.
files:
Lib/idlelib/EditorWindow.py | 2 +-
Misc/NEWS | 2 ++
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -860,7 +860,7 @@
# for each edit window instance, construct the recent files menu
for instance in self.top.instance_dict:
menu = instance.recent_files_menu
- menu.delete(1, END) # clear, and rebuild:
+ menu.delete(0, END) # clear, and rebuild:
for i, file_name in enumerate(rf_list):
file_name = file_name.rstrip() # zap \n
# make unicode string to display non-ASCII chars correctly
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -70,6 +70,8 @@
Library
-------
+- Issue #10997: Prevent a duplicate entry in IDLE's "Recent Files" menu.
+
- Issue #14443: Tell rpmbuild to use the correct version of Python in
bdist_rpm. Initial patch by Ross Lagerwall.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list