Reword deprecation message for Connection.run_callable()

based on feedback at
https://github.com/sqlalchemy/sqlalchemy/commit/00b5c10846e800304caa86549ab9da373b42fa5d#r48321551

Change-Id: Ibdf4b4fb86af0b8f282a7866883837915ea2934e
This commit is contained in:
Mike Bayer
2021-03-16 15:32:22 -04:00
parent c949312bc1
commit 65d27f9611
+2 -1
View 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