From 51644a116cedfc6787282b9cb068a54e8c256142 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Wed, 17 Oct 2012 11:50:32 +0200 Subject: [PATCH] remove unused code --- _pytest/python.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/_pytest/python.py b/_pytest/python.py index 1cfd9cf06..aeba647f8 100644 --- a/_pytest/python.py +++ b/_pytest/python.py @@ -53,21 +53,6 @@ def fixture(scope="function", params=None, autouse=False): defaultfuncargprefixmarker = fixture() -def cached_property(f): - """returns a cached property that is calculated by function f. - taken from http://code.activestate.com/recipes/576563-cached-property/""" - def get(self): - try: - return self._property_cache[f] - except AttributeError: - self._property_cache = {} - x = self._property_cache[f] = f(self) - return x - except KeyError: - x = self._property_cache[f] = f(self) - return x - return property(get) - def pyobj_property(name): def get(self): node = self.getparent(getattr(pytest, name))