[Python-checkins] cpython (3.2): Issue #14496: Fix wrong name in idlelib/tabbedpages.py.

andrew.svetlov python-checkins at python.org
Thu Apr 5 15:58:38 CEST 2012


http://hg.python.org/cpython/rev/f2dfe0ca6c21
changeset:   76118:f2dfe0ca6c21
branch:      3.2
parent:      76108:058f9a9f97cd
user:        Andrew Svetlov <andrew.svetlov at gmail.com>
date:        Thu Apr 05 16:58:05 2012 +0300
summary:
  Issue #14496: Fix wrong name in idlelib/tabbedpages.py.
  Patch by Popa Claudiu.

files:
  Lib/idlelib/tabbedpages.py |  4 ++--
  Misc/NEWS                  |  3 +++
  2 files changed, 5 insertions(+), 2 deletions(-)


diff --git a/Lib/idlelib/tabbedpages.py b/Lib/idlelib/tabbedpages.py
--- a/Lib/idlelib/tabbedpages.py
+++ b/Lib/idlelib/tabbedpages.py
@@ -78,7 +78,7 @@
     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 @@
         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:
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -39,6 +39,9 @@
 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.

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list