]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix typo in python example
authorAnton Vlasenko <antares.spica@gmail.com>
Wed, 14 Feb 2018 10:31:36 +0000 (11:31 +0100)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 27 Feb 2018 19:46:47 +0000 (14:46 -0500)
(cherry picked from commit 31d28179c29e987a6ed844f6b8abf5dc1574e594)

doc/build/orm/session_state_management.rst

index 40fda4c7593fc83020f0e82819b2dd42d5e71a44..7387ee637d13a95d3b38eeb6cc070132f084efa3 100644 (file)
@@ -350,7 +350,7 @@ Another example of unexpected state::
 
     >>> a1 = Address(id=existing_a1.id, user_id=u1.id)
     >>> assert a1.user is None
-    >>> True
+    True
     >>> a1 = session.merge(a1)
     >>> session.commit()
     sqlalchemy.exc.IntegrityError: (IntegrityError) address.user_id