Skip to content

Commit 3b65abd

Browse files
committed
Merge pull request #715 from dhermes/fix-709
Fixing Batch class docstring (referenced dead code).
2 parents ef2920c + bbd049b commit 3b65abd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

gcloud/datastore/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
which represents a connection between your machine and the Cloud Datastore
2929
API.
3030
31+
- :class:`gcloud.datastore.dataset.Dataset`
32+
which represents a dataset ID (string) bundled with a connection and has
33+
convenience methods for constructing objects with that dataset ID.
34+
3135
- :class:`gcloud.datastore.entity.Entity`
3236
which represents a single entity in the datastore
3337
(akin to a row in relational database world).
@@ -56,6 +60,7 @@
5660
from gcloud.datastore.api import put
5761
from gcloud.datastore.batch import Batch
5862
from gcloud.datastore.connection import Connection
63+
from gcloud.datastore.dataset import Dataset
5964
from gcloud.datastore.entity import Entity
6065
from gcloud.datastore.key import Key
6166
from gcloud.datastore.query import Query

gcloud/datastore/batch.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ class Batch(object):
5151
5252
By default, no updates will be sent if the block exits with an error::
5353
54-
>>> from gcloud import datastore
55-
>>> dataset = datastore.get_dataset('dataset-id')
5654
>>> with Batch() as batch:
5755
... do_some_work(batch)
5856
... raise Exception() # rolls back

0 commit comments

Comments
 (0)