]> granicus.if.org Git - python/commitdiff
Issue #14496: Fix wrong name in idlelib/tabbedpages.py.
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Thu, 5 Apr 2012 13:58:05 +0000 (16:58 +0300)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Thu, 5 Apr 2012 13:58:05 +0000 (16:58 +0300)
  Patch by Popa Claudiu.

Lib/idlelib/tabbedpages.py
Misc/NEWS

index f7917021fb720bd87632d0b773e69920483cf000..2557732755867b2604076562696e992d10daadc2 100644 (file)
@@ -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:
index 45e0c25f1f32047061aef497b1f365fd091505e9..4af242a0b48ef297eebd4fb88cf04c35d69be24b 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -39,6 +39,9 @@ Core and Builtins
 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
   a multiprocessing Client or Listener with an AF_UNIX type address under
   Windows.  Patch by Popa Claudiu.