]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Reword deprecation message for Connection.run_callable()
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 16 Mar 2021 19:32:22 +0000 (15:32 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 16 Mar 2021 19:32:22 +0000 (15:32 -0400)
based on feedback at
https://github.com/sqlalchemy/sqlalchemy/commit/00b5c10846e800304caa86549ab9da373b42fa5d#r48321551

Change-Id: Ibdf4b4fb86af0b8f282a7866883837915ea2934e

lib/sqlalchemy/engine/base.py

index a748270d0fbde8a095b2929411bc9c7cd81d8737..c5fefa8d9ae9b415bb19c6fa9c798b150df1a17b 100644 (file)
@@ -2078,7 +2078,8 @@ class Connection(Connectable):
         "1.4",
         "The :meth:`_engine.Connection.run_callable` "
         "method is deprecated and will "
-        "be removed in a future release.  Use a context manager instead.",
+        "be removed in a future release.  Invoke the callable function "
+        "directly, passing the Connection.",
     )
     def run_callable(self, callable_, *args, **kwargs):
         r"""Given a callable object or function, execute it, passing