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

index 816a526ed67008f5cc121dcc5a8dd696f1a1d001..d89f2086afa9d08f3819d445de6c2f7eb53c6645 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -229,6 +229,8 @@ Documentation
 Tools/Demos
 -----------
 
+- Issue #18448: Fix a typo in Tools/demo/eiffel.py.
+
 - Issue #18457: Fixed saving of formulas and complex numbers in
   Tools/demo/ss1.py.
 
index 3a282244d40c091e2e57e8f68e6ab7c49fc56178..736abea81738c8fc9b49be8c05d2a6b3340ebdb5 100755 (executable)
@@ -36,7 +36,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):