Skip to content

Datastore transaction doc snippet has two imports #705

@jgeewax

Description

@jgeewax

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

Snippet is

>>> from gcloud import datastore
>>> from gcloud.datastore.transaction import Transaction

>>> datastore.set_defaults()

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

I'd expect it to be

>>> from gcloud import datastore
>>> with datastore.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