Skip to content

Commit 24ba02b

Browse files
committed
Merge pull request #784 from dhermes/fix-781
Removing outdated Transaction.succeeded docs.
2 parents daa0027 + 7dcd496 commit 24ba02b

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

gcloud/datastore/transaction.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,6 @@ class Transaction(Batch):
7070
...
7171
>>> assert not entity.key.is_partial # There *is* an ID.
7272
73-
After completion, you can determine if a commit succeeded or failed.
74-
For example, trying to delete a key that doesn't exist::
75-
76-
>>> with datastore.Transaction() as xact:
77-
... xact.delete(key)
78-
...
79-
>>> xact.succeeded
80-
False
81-
82-
or successfully storing two entities:
83-
84-
>>> with datastore.Transaction() as xact:
85-
... datastore.put([entity1, entity2])
86-
...
87-
>>> xact.succeeded
88-
True
89-
9073
If you don't want to use the context manager you can initialize a
9174
transaction manually::
9275

0 commit comments

Comments
 (0)