summaryrefslogtreecommitdiff
path: root/examples/query_caching/query_caching.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-06-02 15:32:17 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-06-02 15:32:17 +0000
commit86ded90c6ee1b5ede09ed65b450e2918a2ba6d17 (patch)
tree0fcc4c9d23902dd9a119ec1153c3721a6dac4f17 /examples/query_caching/query_caching.py
parentc998539b40fc22149d637bd4224215f6b81914f4 (diff)
downloadsqlalchemy-86ded90c6ee1b5ede09ed65b450e2918a2ba6d17.tar.gz
make Query._clone() class-agnostic
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):