]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fixed a typo in before_execute doc.
authorMichael Smirnov <kishkin@gmail.com>
Tue, 22 Aug 2017 13:49:54 +0000 (13:49 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 25 Sep 2017 21:25:26 +0000 (17:25 -0400)
events.py edited online with Bitbucket

(cherry picked from commit e0ddf30bf65f0cc90ae3c471bf9b3aae56cbc824)

lib/sqlalchemy/events.py

index 508af6c186f7eb21f893c88cf6e8700d6ae2d4a5..b08c1bafc1e31f0c92a67f61f4db77823f2f9b14 100644 (file)
@@ -540,7 +540,7 @@ class ConnectionEvents(event.Events):
         arguments should be returned as a three-tuple in this case::
 
             @event.listens_for(Engine, "before_execute", retval=True)
-            def before_execute(conn, conn, clauseelement, multiparams, params):
+            def before_execute(conn, clauseelement, multiparams, params):
                 # do something with clauseelement, multiparams, params
                 return clauseelement, multiparams, params