[Python-checkins] cpython (2.7): Issue #18448: Fix a typo in Demo/newmetaclasses/Eiffel.py.

serhiy.storchaka python-checkins at python.org
Tue Jul 16 21:16:35 CEST 2013


http://hg.python.org/cpython/rev/a9f7c2d49149
changeset:   84666:a9f7c2d49149
branch:      2.7
parent:      84659:d635e94948a6
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Tue Jul 16 22:11:28 2013 +0300
summary:
  Issue #18448: Fix a typo in Demo/newmetaclasses/Eiffel.py.

files:
  Demo/newmetaclasses/Eiffel.py |  2 +-
  Misc/NEWS                     |  2 ++
  2 files changed, 3 insertions(+), 1 deletions(-)


diff --git a/Demo/newmetaclasses/Eiffel.py b/Demo/newmetaclasses/Eiffel.py
--- a/Demo/newmetaclasses/Eiffel.py
+++ b/Demo/newmetaclasses/Eiffel.py
@@ -29,7 +29,7 @@
             pre = dict.get("%s_pre" % m)
             post = dict.get("%s_post" % m)
             if pre or post:
-                dict[k] = cls.make_eiffel_method(dict[m], pre, post)
+                dict[m] = cls.make_eiffel_method(dict[m], pre, post)
 
 class EiffelMetaClass1(EiffelBaseMetaClass):
     # an implementation of the "eiffel" meta class that uses nested functions
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -77,6 +77,8 @@
 Tools/Demos
 -----------
 
+- Issue #18448: Fix a typo in Demo/newmetaclasses/Eiffel.py.
+
 - Issue #12990: The "Python Launcher" on OSX could not launch python scripts
   that have paths that include wide characters.
 

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


More information about the Python-checkins mailing list