summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/util/compat.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-08-18 16:16:25 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2013-08-18 16:16:25 -0400
commit633a86bfd4b68bb52e429f53ec34b3a47e787315 (patch)
tree1f3e009892fbb8c27f58b69c04264ae3e4566d17 /lib/sqlalchemy/util/compat.py
parent806a9b778506290e5ebe72bf4f32a849e60ea3cd (diff)
downloadsqlalchemy-633a86bfd4b68bb52e429f53ec34b3a47e787315.tar.gz
and we don't need weakset
Diffstat (limited to 'lib/sqlalchemy/util/compat.py')
-rw-r--r--lib/sqlalchemy/util/compat.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/sqlalchemy/util/compat.py b/lib/sqlalchemy/util/compat.py
index a89762b4e..7c2bc88d4 100644
--- a/lib/sqlalchemy/util/compat.py
+++ b/lib/sqlalchemy/util/compat.py
@@ -149,29 +149,6 @@ else:
itertools_imap = itertools.imap
-
-try:
- from weakref import WeakSet
-except:
- import weakref
-
- class WeakSet(object):
- """Implement the small subset of set() which SQLAlchemy needs
- here. """
- def __init__(self, values=None):
- self._storage = weakref.WeakKeyDictionary()
- if values is not None:
- self._storage.update((value, None) for value in values)
-
- def __iter__(self):
- return iter(self._storage)
-
- def union(self, other):
- return WeakSet(set(self).union(other))
-
- def add(self, other):
- self._storage[other] = True
-
import time
if win32 or jython:
time_func = time.clock