Skip to content

Datastore transaction doc snippet has two imports #705

Description

@jgeewax

See http://googlecloudplatform.github.io/gcloud-python/latest/datastore-transactions.html#gcloud.datastore.transaction.Transaction

Snippet is

>>>fromgcloudimportdatastore>>>fromgcloud.datastore.transactionimportTransaction>>>datastore.set_defaults()
>>>withTransaction():
... datastore.put([entity1, entity2])

I'd expect it to be

>>>fromgcloudimportdatastore>>>withdatastore.Transaction():
... datastore.put([entity1, entity2])

Metadata

Metadata

Assignees

Labels

api: datastoreIssues related to the Datastore API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions