summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/associationproxy.py
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2008-01-21 23:19:39 +0000
committerJason Kirtland <jek@discorporate.us>2008-01-21 23:19:39 +0000
commit412c80dd6c5d6b940e86e7e142aa1fdd6ee4466d (patch)
tree2a5bfa8185dd888d52b31bfb26ada56c7db89139 /lib/sqlalchemy/ext/associationproxy.py
parent08bbc3dfd84234c3cd691e43ff17ed36e2396d76 (diff)
downloadsqlalchemy-412c80dd6c5d6b940e86e7e142aa1fdd6ee4466d.tar.gz
- 2.3 fixup, part two: 100% passing for sqlite
- added 2.4-style binops to util.Set on 2.3 - OrderedSets pickle on 2.3 - more lib/sqlalchemy set vs Set corrections - fixed InstrumentedSet.discard for 2.3 - set, sorted compatibility for test suite - added testing.fails_if decorator
Diffstat (limited to 'lib/sqlalchemy/ext/associationproxy.py')
-rw-r--r--lib/sqlalchemy/ext/associationproxy.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sqlalchemy/ext/associationproxy.py b/lib/sqlalchemy/ext/associationproxy.py
index fefc289f8..e9f604005 100644
--- a/lib/sqlalchemy/ext/associationproxy.py
+++ b/lib/sqlalchemy/ext/associationproxy.py
@@ -686,7 +686,7 @@ class _AssociationSet(object):
self.add(value)
def __ior__(self, other):
- if util.duck_type_collection(other) is not set:
+ if util.duck_type_collection(other) is not util.Set:
return NotImplemented
for value in other:
self.add(value)
@@ -710,7 +710,7 @@ class _AssociationSet(object):
self.discard(value)
def __isub__(self, other):
- if util.duck_type_collection(other) is not set:
+ if util.duck_type_collection(other) is not util.Set:
return NotImplemented
for value in other:
self.discard(value)
@@ -732,7 +732,7 @@ class _AssociationSet(object):
self.add(value)
def __iand__(self, other):
- if util.duck_type_collection(other) is not set:
+ if util.duck_type_collection(other) is not util.Set:
return NotImplemented
want, have = self.intersection(other), util.Set(self)
@@ -760,7 +760,7 @@ class _AssociationSet(object):
self.add(value)
def __ixor__(self, other):
- if util.duck_type_collection(other) is not set:
+ if util.duck_type_collection(other) is not util.Set:
return NotImplemented
want, have = self.symmetric_difference(other), util.Set(self)