From 5c979e9b5ee912f2021057ecaa242e0e32a5c772 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Thu, 9 Nov 2017 12:52:08 -0800 Subject: [PATCH] cosmetic changes to address #4343 --- datastore/google/cloud/datastore/client.py | 9 ++++----- datastore/google/cloud/datastore/helpers.py | 6 +++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/datastore/google/cloud/datastore/client.py b/datastore/google/cloud/datastore/client.py index d1091e119a67..fc4a107022ee 100644 --- a/datastore/google/cloud/datastore/client.py +++ b/datastore/google/cloud/datastore/client.py @@ -167,10 +167,10 @@ class Client(ClientWithProject): >>> client = datastore.Client() :type project: str - :param project: (optional) The project to pass to proxied API methods. + :param project: (Optional) The project to pass to proxied API methods. :type namespace: str - :param namespace: (optional) namespace to pass to proxied API methods. + :param namespace: (Optional) namespace to pass to proxied API methods. :type credentials: :class:`~google.auth.credentials.Credentials` :param credentials: (Optional) The OAuth2 Credentials to use for this @@ -346,9 +346,8 @@ def get_multi(self, keys, missing=None, deferred=None, :type eventual: bool :param eventual: (Optional) Defaults to strongly consistent (False). - Setting True will use eventual consistency, - but cannot be used inside a transaction or - will raise ValueError. + Setting True will use eventual consistency, but cannot + be used inside a transaction or will raise ValueError. :rtype: list of :class:`google.cloud.datastore.entity.Entity` :returns: The requested entities. diff --git a/datastore/google/cloud/datastore/helpers.py b/datastore/google/cloud/datastore/helpers.py index 942819403a7f..f3838668fe3d 100644 --- a/datastore/google/cloud/datastore/helpers.py +++ b/datastore/google/cloud/datastore/helpers.py @@ -19,6 +19,9 @@ import datetime import itertools + +from google.protobuf import struct_pb2 +from google.type import latlng_pb2 import six from google.cloud._helpers import _datetime_to_pb_timestamp @@ -28,9 +31,6 @@ from google.cloud.datastore.entity import Entity from google.cloud.datastore.key import Key -from google.protobuf import struct_pb2 -from google.type import latlng_pb2 - def _get_meaning(value_pb, is_list=False): """Get the meaning from a protobuf value.