Commit 1024541a authored by Andrew Svetlov's avatar Andrew Svetlov

Issue #14496: Fix wrong name in idlelib/tabbedpages.py.

  Patch by Popa Claudiu.
parent ca60b367
...@@ -78,7 +78,7 @@ class TabSet(Frame): ...@@ -78,7 +78,7 @@ class TabSet(Frame):
def remove_tab(self, tab_name): def remove_tab(self, tab_name):
"""Remove the tab named <tab_name>""" """Remove the tab named <tab_name>"""
if not tab_name in self._tab_names: if not tab_name in self._tab_names:
raise KeyError("No such Tab: '%s" % page_name) raise KeyError("No such Tab: '%s" % tab_name)
self._tab_names.remove(tab_name) self._tab_names.remove(tab_name)
self._arrange_tabs() self._arrange_tabs()
...@@ -88,7 +88,7 @@ class TabSet(Frame): ...@@ -88,7 +88,7 @@ class TabSet(Frame):
if tab_name == self._selected_tab: if tab_name == self._selected_tab:
return return
if tab_name is not None and tab_name not in self._tabs: if tab_name is not None and tab_name not in self._tabs:
raise KeyError("No such Tab: '%s" % page_name) raise KeyError("No such Tab: '%s" % tab_name)
# deselect the current selected tab # deselect the current selected tab
if self._selected_tab is not None: if self._selected_tab is not None:
......
...@@ -39,6 +39,9 @@ Core and Builtins ...@@ -39,6 +39,9 @@ Core and Builtins
Library Library
------- -------
- Issue #14496: Fix wrong name in idlelib/tabbedpages.py.
Patch by Popa Claudiu.
- Issue #14482: Raise a ValueError, not a NameError, when trying to create - Issue #14482: Raise a ValueError, not a NameError, when trying to create
a multiprocessing Client or Listener with an AF_UNIX type address under a multiprocessing Client or Listener with an AF_UNIX type address under
Windows. Patch by Popa Claudiu. Windows. Patch by Popa Claudiu.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment