summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-04-05 13:58:05 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-04-05 13:58:05 (GMT)
commit1024541a0dbc1a007ba15ff7ae9a7154bf08a816 (patch)
treee12ac5db3b2c44bbb81409a466358ec5b24bffa1 /Lib
parentca60b367355062cd902d756755da954c9238cdd9 (diff)
downloadcpython-1024541a0dbc1a007ba15ff7ae9a7154bf08a816.zip
cpython-1024541a0dbc1a007ba15ff7ae9a7154bf08a816.tar.gz
cpython-1024541a0dbc1a007ba15ff7ae9a7154bf08a816.tar.bz2
Issue #14496: Fix wrong name in idlelib/tabbedpages.py.
Patch by Popa Claudiu.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/idlelib/tabbedpages.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/tabbedpages.py b/Lib/idlelib/tabbedpages.py
index f791702..2557732 100644
--- a/Lib/idlelib/tabbedpages.py
+++ b/Lib/idlelib/tabbedpages.py
@@ -78,7 +78,7 @@ class TabSet(Frame):
def remove_tab(self, tab_name):
"""Remove the tab named <tab_name>"""
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._arrange_tabs()
@@ -88,7 +88,7 @@ class TabSet(Frame):
if tab_name == self._selected_tab:
return
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
if self._selected_tab is not None: