]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
make raw-docstrings, revert one change
authoraplatkouski <5857672+aplatkouski@users.noreply.github.com>
Mon, 22 Jun 2020 14:55:58 +0000 (17:55 +0300)
committeraplatkouski <5857672+aplatkouski@users.noreply.github.com>
Mon, 22 Jun 2020 14:55:58 +0000 (17:55 +0300)
Signed-off-by: aplatkouski <5857672+aplatkouski@users.noreply.github.com>
lib/sqlalchemy/orm/util.py

index a4a3f11128805c882502bacf30f52271aec7ea7d..e04c54497636d486af6a8b0f4aa5f5c559373b21 100644 (file)
@@ -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)
         (<class '__main__.MyClass'>, (1, 2), None)