]> granicus.if.org Git - python/commitdiff
Remove list prenpost. It's not used any longer.
authorJeremy Hylton <jeremy@alum.mit.edu>
Thu, 11 Jul 2002 21:14:14 +0000 (21:14 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Thu, 11 Jul 2002 21:14:14 +0000 (21:14 +0000)
Demo/newmetaclasses/Eiffel.py

index ac9a3fe395b101b2a8f711d499311986e43f7f4f..e73d0ca880035357aaa551c852eaab944c2f65dc 100644 (file)
@@ -14,11 +14,9 @@ class EiffelBaseMetaClass(type):
         """
         # find methods with pre or post conditions
         methods = []
-        prenpost = []
         for k, v in dict.iteritems():
             if k.endswith('_pre') or k.endswith('_post'):
                 assert isinstance(v, function)
-                prenpost.append(k)
             elif isinstance(v, function):
                 methods.append(k)
         for m in methods:
@@ -60,7 +58,6 @@ class EiffelMethodWrapper:
 
     def __call__(self, *args, **kwargs):
         return self._descr.callmethod(self._inst, args, kwargs)
-        
 
 class EiffelDescriptor(object):