mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Remove list prenpost. It's not used any longer.
This commit is contained in:
parent
c9329cae53
commit
a70c3bd2c8
1 changed files with 0 additions and 3 deletions
|
|
@ -14,11 +14,9 @@ class EiffelBaseMetaClass(type):
|
||||||
"""
|
"""
|
||||||
# find methods with pre or post conditions
|
# find methods with pre or post conditions
|
||||||
methods = []
|
methods = []
|
||||||
prenpost = []
|
|
||||||
for k, v in dict.iteritems():
|
for k, v in dict.iteritems():
|
||||||
if k.endswith('_pre') or k.endswith('_post'):
|
if k.endswith('_pre') or k.endswith('_post'):
|
||||||
assert isinstance(v, function)
|
assert isinstance(v, function)
|
||||||
prenpost.append(k)
|
|
||||||
elif isinstance(v, function):
|
elif isinstance(v, function):
|
||||||
methods.append(k)
|
methods.append(k)
|
||||||
for m in methods:
|
for m in methods:
|
||||||
|
|
@ -61,7 +59,6 @@ class EiffelMethodWrapper:
|
||||||
def __call__(self, *args, **kwargs):
|
def __call__(self, *args, **kwargs):
|
||||||
return self._descr.callmethod(self._inst, args, kwargs)
|
return self._descr.callmethod(self._inst, args, kwargs)
|
||||||
|
|
||||||
|
|
||||||
class EiffelDescriptor(object):
|
class EiffelDescriptor(object):
|
||||||
|
|
||||||
def __init__(self, func, pre, post):
|
def __init__(self, func, pre, post):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue