summaryrefslogtreecommitdiff
path: root/examples/query_caching/query_caching.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/query_caching/query_caching.py')
-rw-r--r--examples/query_caching/query_caching.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/examples/query_caching/query_caching.py b/examples/query_caching/query_caching.py
index 1ac8230b6..fb250acca 100644
--- a/examples/query_caching/query_caching.py
+++ b/examples/query_caching/query_caching.py
@@ -13,13 +13,6 @@ class CachingQuery(Query):
def with_cache_key(self, cachekey):
self.cachekey = cachekey
- # override the _clone() method. a future release
- # will just fix _clone() in Query to not hardcode the class so this won't be needed.
- def _clone(self):
- q = CachingQuery.__new__(CachingQuery)
- q.__dict__ = self.__dict__.copy()
- return q
-
# single point of object loading is __iter__(). objects in the cache are not associated
# with a session and are never returned directly; only merged copies.
def __iter__(self):