From: Mike Bayer Date: Tue, 6 Dec 2011 17:43:16 +0000 (-0500) Subject: fix typo, [ticket:2232] X-Git-Tag: rel_0_7_4~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1dea4c1f87a43e668525b4c917cdc9eb4b56f218;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix typo, [ticket:2232] --- diff --git a/lib/sqlalchemy/events.py b/lib/sqlalchemy/events.py index adfbd19664..1804102330 100644 --- a/lib/sqlalchemy/events.py +++ b/lib/sqlalchemy/events.py @@ -248,7 +248,7 @@ class PoolEvents(event.Events): def my_on_checkout(dbapi_conn, connection_rec, connection_proxy): "handle an on checkout event" - events.listen(Pool, 'checkout', my_on_checkout) + event.listen(Pool, 'checkout', my_on_checkout) In addition to accepting the :class:`.Pool` class and :class:`.Pool` instances, :class:`.PoolEvents` also accepts :class:`.Engine` objects and @@ -259,7 +259,7 @@ class PoolEvents(event.Events): engine = create_engine("postgresql://scott:tiger@localhost/test") # will associate with engine.pool - events.listen(engine, 'checkout', my_on_checkout) + event.listen(engine, 'checkout', my_on_checkout) """