From: Mike Bayer Date: Mon, 9 Aug 2010 00:14:35 +0000 (-0400) Subject: confirmed we can get this to trigger if we apply heisenbug compensation X-Git-Tag: rel_0_7b1~253^2~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1c832aa51ccf4b0970b242d92a0f458cd2fb2a45;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git confirmed we can get this to trigger if we apply heisenbug compensation --- diff --git a/lib/sqlalchemy/event.py b/lib/sqlalchemy/event.py index f9fbcc118f..603aaf383c 100644 --- a/lib/sqlalchemy/event.py +++ b/lib/sqlalchemy/event.py @@ -146,10 +146,8 @@ class Listeners(_ExecEvent): return bool(self.listeners or self.parent_listeners) def append(self, obj, target): - # this will be needed, but not - # sure why we don't seem to need it yet - # if obj not in self.listeners: - self.listeners.append(obj) + if obj not in self.listeners: + self.listeners.append(obj) class dispatcher(object): def __init__(self, events):