summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/event
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2018-02-19 16:59:42 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2018-02-19 17:01:43 -0500
commit1393eac44c49299e733a5181f387ba140aaa3e44 (patch)
tree228ea8203b49c247280e2b2bfdc314df1fc47629 /lib/sqlalchemy/event
parent20aee85b44cb8847aedb4196dc720a7feea0f584 (diff)
downloadsqlalchemy-1393eac44c49299e733a5181f387ba140aaa3e44.tar.gz
Implement remove() for _empty_collection
Fixed regression caused in 1.2.3 due to fix from :ticket:`4181` where the changes to the event system involving :class:`.Engine` and :class:`.OptionEngine` did not accommodate for event removals, which would raise an ``AttributeError`` when invoked at the class level. Change-Id: I1c9083829d74dd710716d28b0eaca4fa15e86313 Fixes: #4190
Diffstat (limited to 'lib/sqlalchemy/event')
-rw-r--r--lib/sqlalchemy/event/attr.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sqlalchemy/event/attr.py b/lib/sqlalchemy/event/attr.py
index efa8fab42..c33ec82ff 100644
--- a/lib/sqlalchemy/event/attr.py
+++ b/lib/sqlalchemy/event/attr.py
@@ -54,6 +54,9 @@ class _empty_collection(object):
def extend(self, other):
pass
+ def remove(self, element):
+ pass
+
def __iter__(self):
return iter([])