From 65d27f9611f3603f4bbfa6c2efca20b9eb01cecd Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 16 Mar 2021 15:32:22 -0400 Subject: [PATCH] Reword deprecation message for Connection.run_callable() based on feedback at https://github.com/sqlalchemy/sqlalchemy/commit/00b5c10846e800304caa86549ab9da373b42fa5d#r48321551 Change-Id: Ibdf4b4fb86af0b8f282a7866883837915ea2934e --- lib/sqlalchemy/engine/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.2