summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/collections.py
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2007-07-19 23:13:23 +0000
committerJason Kirtland <jek@discorporate.us>2007-07-19 23:13:23 +0000
commit6318b43408b64f75121c41c74c00b35e8b80f639 (patch)
treebb32db400718708e7c04b827d0a6f00e07865e09 /lib/sqlalchemy/orm/collections.py
parent819c944a9a3c153f3ef5ec029ff5a785db929f9c (diff)
downloadsqlalchemy-6318b43408b64f75121c41c74c00b35e8b80f639.tar.gz
Remove unused imports, typo and light formatting tweaks.
Fixed comparison of _UnaryExpressions
Diffstat (limited to 'lib/sqlalchemy/orm/collections.py')
-rw-r--r--lib/sqlalchemy/orm/collections.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqlalchemy/orm/collections.py b/lib/sqlalchemy/orm/collections.py
index 4a7ba0ad6..f51ea3b31 100644
--- a/lib/sqlalchemy/orm/collections.py
+++ b/lib/sqlalchemy/orm/collections.py
@@ -95,10 +95,10 @@ The owning object and InstrumentedCollectionAttribute are also reachable
through the adapter, allowing for some very sophisticated behavior.
"""
+import copy, inspect, sys, weakref
+
from sqlalchemy import exceptions, schema, util as sautil
from sqlalchemy.orm import mapper
-import copy, sys, warnings, weakref
-import new
try:
from threading import Lock
@@ -739,7 +739,7 @@ def _instrument_membership_mutator(method, before, argument, after):
executor = getattr(args[0], '_sa_adapter', None)
if before and executor:
- getattr(executor, op)(value, initiator)
+ getattr(executor, before)(value, initiator)
if not after or not executor:
return method(*args, **kw)