From 34dfd7eb88f42e259d3049dbbc823a97b11cb555 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 29 Aug 2020 14:32:20 -0400 Subject: Update connection docs for migrating off of nesting Change-Id: I3a81140f00a4a9945121bfb8ec4c0e3953b4085f --- lib/sqlalchemy/orm/session.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/sqlalchemy') diff --git a/lib/sqlalchemy/orm/session.py b/lib/sqlalchemy/orm/session.py index dc3af80f2..e844836ba 100644 --- a/lib/sqlalchemy/orm/session.py +++ b/lib/sqlalchemy/orm/session.py @@ -1085,11 +1085,11 @@ class Session(_SessionClassMethods): @property @util.deprecated_20( - "The :attr:`_orm.Session.transaction` accessor is deprecated and " - "will be removed in SQLAlchemy version 2.0. " - "For context manager use, use :meth:`_orm.Session.begin`. To access " + ":attr:`_orm.Session.transaction`", + alternative="For context manager use, use " + ":meth:`_orm.Session.begin`. To access " "the current root transaction, use " - ":meth:`_orm.Session.get_transaction`" + ":meth:`_orm.Session.get_transaction`.", ) def transaction(self): """The current active or inactive :class:`.SessionTransaction`. -- cgit v1.2.1