From: Mike Bayer Date: Tue, 16 Mar 2021 19:32:22 +0000 (-0400) Subject: Reword deprecation message for Connection.run_callable() X-Git-Tag: rel_1_4_1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65d27f9611f3603f4bbfa6c2efca20b9eb01cecd;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Reword deprecation message for Connection.run_callable() based on feedback at https://github.com/sqlalchemy/sqlalchemy/commit/00b5c10846e800304caa86549ab9da373b42fa5d#r48321551 Change-Id: Ibdf4b4fb86af0b8f282a7866883837915ea2934e --- diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py index a748270d0f..c5fefa8d9a 100644 --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@ -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