summaryrefslogtreecommitdiff
path: root/dev-python/sqlalchemy/files/lru_cache_timestamping.patch
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-11-19 11:39:17 +0100
committerJustin Lecher <jlec@gentoo.org>2015-11-19 13:26:05 +0100
commit51a8c34af9d6ca42305e63ee044dfc031d68ae1d (patch)
treea7d5a2a73a6e9097a8f0d099353296d6b893454c /dev-python/sqlalchemy/files/lru_cache_timestamping.patch
parent35594822be60ba2f2098151e8320acc1ef288765 (diff)
downloadgentoo-51a8c34af9d6ca42305e63ee044dfc031d68ae1d.tar.gz
gentoo-51a8c34af9d6ca42305e63ee044dfc031d68ae1d.tar.bz2
gentoo-51a8c34af9d6ca42305e63ee044dfc031d68ae1d.zip
dev-python/sqlalchemy: Clean old
obsoletes Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=481426 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=481634 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=489488 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=546892 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=547260 Package-Manager: portage-2.2.25 Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'dev-python/sqlalchemy/files/lru_cache_timestamping.patch')
-rw-r--r--dev-python/sqlalchemy/files/lru_cache_timestamping.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/dev-python/sqlalchemy/files/lru_cache_timestamping.patch b/dev-python/sqlalchemy/files/lru_cache_timestamping.patch
deleted file mode 100644
index 41cd3915669f..000000000000
--- a/dev-python/sqlalchemy/files/lru_cache_timestamping.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-diff -r d1c7b3df098a lib/sqlalchemy/util/_collections.py
-
-Index: lib/sqlalchemy/util/_collections.py
-===================================================================
---- a/lib/sqlalchemy/util/_collections.py Wed Jan 18 12:42:54 2012 -0500
-+++ b/lib/sqlalchemy/util/_collections.py Thu Jan 19 10:01:28 2012 -0500
-@@ -769,10 +769,15 @@
- def __init__(self, capacity=100, threshold=.5):
- self.capacity = capacity
- self.threshold = threshold
-+ self._counter = 0
-+
-+ def _inc_counter(self):
-+ self._counter += 1
-+ return self._counter
-
- def __getitem__(self, key):
- item = dict.__getitem__(self, key)
-- item[2] = time_func()
-+ item[2] = self._inc_counter()
- return item[1]
-
- def values(self):
-@@ -788,7 +793,7 @@
- def __setitem__(self, key, value):
- item = dict.get(self, key)
- if item is None:
-- item = [key, value, time_func()]
-+ item = [key, value, self._inc_counter()]
- dict.__setitem__(self, key, item)
- else:
- item[1] = value
-