Skip to content

Commit

Permalink
Merge pull request #784 from dhermes/fix-781
Browse files Browse the repository at this point in the history
Removing outdated Transaction.succeeded docs.
  • Loading branch information
dhermes committed Mar 31, 2015
2 parents daa0027 + 7dcd496 commit 24ba02b
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions gcloud/datastore/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,23 +70,6 @@ class Transaction(Batch):
...
>>> assert not entity.key.is_partial # There *is* an ID.
After completion, you can determine if a commit succeeded or failed.
For example, trying to delete a key that doesn't exist::
>>> with datastore.Transaction() as xact:
... xact.delete(key)
...
>>> xact.succeeded
False
or successfully storing two entities:
>>> with datastore.Transaction() as xact:
... datastore.put([entity1, entity2])
...
>>> xact.succeeded
True
If you don't want to use the context manager you can initialize a
transaction manually::
Expand Down

0 comments on commit 24ba02b

Please sign in to comment.