Skip to content

Commit

Permalink
coding style revised
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanyang0528 committed Nov 27, 2014
1 parent 1806341 commit e47ccc1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions gcloud/datastore/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,12 @@ def get_entity(self, key_or_path):
"""Retrieves entity from the dataset, along with its attributes.
:type key_or_path: :class:`gcloud.datastore.key.Key` or path
:param key_or_path: The name of the item to retrieve or sequence of
even length, where the first of each pair is a
string representing the 'kind' of the path element,
and the second of the pair is either a string (for
the path element's name) or an integer (for its id).
:param key_or_path: The name of the item to retrieve or sequence
of even length, where the first of each pair
is a string representing the 'kind' of the
path element, and the second of the pair is
either a string (for the path element's name)
or an integer (for its id).
:rtype: :class:`gcloud.datastore.entity.Entity` or ``None``
:return: The requested entity, or ``None`` if there was no match found.
Expand Down
1 change: 1 addition & 0 deletions gcloud/datastore/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def test_get_entity_path(self):
self.assertEqual(list(result), ['foo'])
self.assertEqual(result['foo'], 'Foo')


class _Connection(object):
_called_with = None

Expand Down

0 comments on commit e47ccc1

Please sign in to comment.