From 444a93cfa7e58c088d6b0fa6cbae35e65f371e5c Mon Sep 17 00:00:00 2001 From: aplatkouski <5857672+aplatkouski@users.noreply.github.com> Date: Mon, 22 Jun 2020 17:55:58 +0300 Subject: [PATCH] make raw-docstrings, revert one change Signed-off-by: aplatkouski <5857672+aplatkouski@users.noreply.github.com> --- lib/sqlalchemy/orm/util.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/sqlalchemy/orm/util.py b/lib/sqlalchemy/orm/util.py index a4a3f11128..e04c544976 100644 --- a/lib/sqlalchemy/orm/util.py +++ b/lib/sqlalchemy/orm/util.py @@ -264,7 +264,7 @@ def polymorphic_union( def identity_key(*args, **kwargs): - """Generate "identity key" tuples, as are used as keys in the + r"""Generate "identity key" tuples, as are used as keys in the :attr:`.Session.identity_map` dictionary. This function has several call styles: @@ -313,8 +313,9 @@ def identity_key(*args, **kwargs): E.g.:: - >>> row = engine.execute( - ... text("select * from table where a=1 and b=2")).first() + >>> row = engine.execute(\ + text("select * from table where a=1 and b=2")\ + ).first() >>> identity_key(MyClass, row=row) (, (1, 2), None) -- 2.47.3