Skip to content

Commit b4bf54f

Browse files
committed
Fixing remaining PEP8 long line issues.
1 parent b6644a1 commit b4bf54f

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

gcloud/datastore/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ def get_connection(client_email, private_key_path):
7171

7272

7373
def get_dataset(dataset_id, client_email, private_key_path):
74-
"""Shortcut method to establish a connection to a particular dataset in the Cloud Datastore.
74+
"""Establish a connection to a particular dataset in the Cloud Datastore.
75+
76+
This is a shortcut method for creating a connection and using it
77+
to connect to a dataset.
7578
7679
You'll generally use this as the first call to working with the API:
7780

gcloud/datastore/entity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def __init__(self, dataset=None, kind=None):
7171
self._key = None
7272

7373
def dataset(self):
74-
"""Get the :class:`gcloud.datastore.dataset.Dataset` in which this entity belongs.
74+
"""Get the :class:`.dataset.Dataset` in which this entity belongs.
7575
7676
.. note::
7777
This is based on the :class:`gcloud.datastore.key.Key` set on the entity.
@@ -119,7 +119,7 @@ def kind(self):
119119

120120
@classmethod
121121
def from_key(cls, key):
122-
"""Factory method for creating an entity based on the :class:`gcloud.datastore.key.Key`.
122+
"""Factory method for creating entity based on :class:`.datastore.key.Key`.
123123
124124
:type key: :class:`gcloud.datastore.key.Key`
125125
:param key: The key for the entity.

gcloud/datastore/query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def _clone(self):
6363
return clone
6464

6565
def to_protobuf(self):
66-
"""Convert the :class:`Query` instance to a :class:`gcloud.datastore.datastore_v1_pb2.Query`.
66+
"""Convert :class:`Query` instance to :class:`.datastore_v1_pb2.Query`.
6767
68-
:rtype: :class:`gclouddatstore.datastore_v1_pb2.Query`
68+
:rtype: :class:`gcloud.datastore.datastore_v1_pb2.Query`
6969
:returns: A Query protobuf that can be sent to the protobuf API.
7070
"""
7171
return self._pb

gcloud/storage/acl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def save(self):
379379

380380

381381
class DefaultObjectACL(BucketACL):
382-
"""A subclass of BucketACL representing the default object ACL for a bucket."""
382+
"""A class of representing the default object ACL for a bucket."""
383383

384384
def save(self):
385385
"""Save this ACL as the default object ACL for the current bucket."""

gcloud/storage/bucket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def get_all_keys(self):
104104
return list(self)
105105

106106
def new_key(self, key):
107-
"""Given a path name (or a Key), return a :class:`gcloud.storage.key.Key` object.
107+
"""Given a path name (or Key), return a :class:`.storage.key.Key` object.
108108
109109
This is really useful when you're not sure
110110
if you have a Key object or a string path name.

gcloud/storage/iterator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def __init__(self, connection):
146146
super(BucketIterator, self).__init__(connection=connection, path='/b')
147147

148148
def get_items_from_response(self, response):
149-
"""Factory method which yields :class:`gcloud.storage.bucket.Bucket` items from a response.
149+
"""Factory method which yields :class:`.Bucket` items from a response.
150150
151151
:type response: dict
152152
:param response: The JSON API response for a page of buckets.
@@ -174,7 +174,7 @@ def __init__(self, bucket):
174174
connection=bucket.connection, path=bucket.path + '/o')
175175

176176
def get_items_from_response(self, response):
177-
"""Factory method which yields :class:`gcloud.storage.key.Key` items from a response.
177+
"""Factory method, yields :class:`.storage.key.Key` items from response.
178178
179179
:type response: dict
180180
:param response: The JSON API response for a page of keys.

0 commit comments

Comments
 (0)