remove dead code - Node._memoizedcall

This commit is contained in:
Ronny Pfannschmidt 2017-07-03 15:56:11 +02:00
parent f1467f8f03
commit ceb016514b
1 changed files with 0 additions and 18 deletions

View File

@ -363,24 +363,6 @@ class Node(object):
def teardown(self): def teardown(self):
pass pass
def _memoizedcall(self, attrname, function):
exattrname = "_ex_" + attrname
failure = getattr(self, exattrname, None)
if failure is not None:
py.builtin._reraise(failure[0], failure[1], failure[2])
if hasattr(self, attrname):
return getattr(self, attrname)
try:
res = function()
except py.builtin._sysex:
raise
except:
failure = sys.exc_info()
setattr(self, exattrname, failure)
raise
setattr(self, attrname, res)
return res
def listchain(self): def listchain(self):
""" return list of all parent collectors up to self, """ return list of all parent collectors up to self,
starting from root of collection tree. """ starting from root of collection tree. """