diff options
author | Emile Caron <zozorleponey@gmail.com> | 2019-06-17 16:25:21 +0200 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-06-17 11:32:56 -0400 |
commit | 5acf1ac51e9b7b5270c2f21838a5df0ed408e4e8 (patch) | |
tree | 60660f9430084644651c880110cf5861eb21352d | |
parent | 5897a963473a77258319b4db4a36dcb1cd54eff2 (diff) | |
download | sqlalchemy-5acf1ac51e9b7b5270c2f21838a5df0ed408e4e8.tar.gz |
Fix typo in documentation examples
(cherry picked from commit 12253707148910d8dafb79425c0fe7d651b9e151)
-rw-r--r-- | doc/build/orm/session_events.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/build/orm/session_events.rst b/doc/build/orm/session_events.rst index 7901d8f4a..0cc9f762d 100644 --- a/doc/build/orm/session_events.rst +++ b/doc/build/orm/session_events.rst @@ -356,7 +356,7 @@ Track objects as they move from persistent to detached using the :meth:`.SessionEvents.persistent_to_detached` event:: @event.listens_for(sessionmaker, "persistent_to_detached") - def intecept_persistent_to_detached(session, object_): + def intercept_persistent_to_detached(session, object_): print("object became detached: %s" % object_) Detached to Persistent @@ -368,7 +368,7 @@ objects moving back to persistent from detached using the :meth:`.SessionEvents.detached_to_persistent` event:: @event.listens_for(sessionmaker, "detached_to_persistent") - def intecept_detached_to_persistent(session, object_): + def intercept_detached_to_persistent(session, object_): print("object became persistent again: %s" % object_) |