]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #18448: Fix a typo in Demo/newmetaclasses/Eiffel.py.
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 16 Jul 2013 19:11:28 +0000 (22:11 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Tue, 16 Jul 2013 19:11:28 +0000 (22:11 +0300)
Demo/newmetaclasses/Eiffel.py
Misc/NEWS

index 730a85da5f712b80ad7f6ad078bb6e6029836751..f3f116fe155d16e1a0128be22b60b061ba02389e 100644 (file)
@@ -29,7 +29,7 @@ class EiffelBaseMetaClass(type):
             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
index 0b2dadfb81ecc11be252541731814bbdb30adfe2..5283da69c173cec0718ee6e94db16fce388d341d 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -77,6 +77,8 @@ Library
 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.