Skip to content

Commit e55a1d8

Browse files
committed
Renaming "import gcloud" statements as google.cloud.
Done via: $ git grep -l 'import gcloud' | \ > xargs sed -i s/'import gcloud'/'import google.cloud'/g
1 parent 261c969 commit e55a1d8

9 files changed

Lines changed: 13 additions & 13 deletions

File tree

docs/json/json/master/index.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"description": "<div class=\"section\"><h2><code>gcloud-python</code></h2><p>GCloud API access in idiomatic Python.</p></div>",
33
"examples": [
4-
"import gcloud"
4+
"import google.cloud"
55
],
66
"id": "gcloud.__init__",
77
"methods": [],

docs/logging-usage.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ Logging client.
395395
.. doctest::
396396

397397
>>> import logging
398-
>>> import gcloud.logging # Don't conflict with standard logging
398+
>>> import google.cloud.logging # Don't conflict with standard logging
399399
>>> from gcloud.logging.handlers import CloudLoggingHandler
400400
>>> client = gcloud.logging.Client()
401401
>>> handler = CloudLoggingHandler(client)
@@ -427,7 +427,7 @@ this automatically:
427427
.. doctest::
428428

429429
>>> import logging
430-
>>> import gcloud.logging # Don't conflict with standard logging
430+
>>> import google.cloud.logging # Don't conflict with standard logging
431431
>>> from gcloud.logging.handlers import CloudLoggingHandler, setup_logging
432432
>>> client = gcloud.logging.Client()
433433
>>> handler = CloudLoggingHandler(client)

google/cloud/error_reporting/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import traceback
1818

19-
import gcloud.logging.client
19+
import google.cloud.logging.client
2020
import six
2121

2222

google/cloud/logging/handlers/handlers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class CloudLoggingHandler(logging.StreamHandler):
5757
5858
.. doctest::
5959
60-
import gcloud.logging
60+
import google.cloud.logging
6161
from gcloud.logging.handlers import CloudLoggingHandler
6262
6363
client = gcloud.logging.Client()
@@ -112,7 +112,7 @@ def setup_logging(handler, excluded_loggers=EXCLUDE_LOGGER_DEFAULTS):
112112
.. doctest::
113113
114114
import logging
115-
import gcloud.logging
115+
import google.cloud.logging
116116
from gcloud.logging.handlers import CloudLoggingHandler
117117
118118
client = gcloud.logging.Client()

system_tests/logging_.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
import logging
1616
import unittest
1717

18-
import gcloud.logging
19-
import gcloud.logging.handlers.handlers
18+
import google.cloud.logging
19+
import google.cloud.logging.handlers.handlers
2020
from gcloud.logging.handlers.handlers import CloudLoggingHandler
2121
from gcloud.logging.handlers.transports import SyncTransport
2222
from gcloud import _helpers

unit_tests/language/test_document.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def _makeOne(self, *args, **kw):
105105
return self._getTargetClass()(*args, **kw)
106106

107107
def test_constructor_defaults(self):
108-
import gcloud.language.document as MUT
108+
import google.cloud.language.document as MUT
109109

110110
client = object()
111111
content = 'abc'
@@ -118,7 +118,7 @@ def test_constructor_defaults(self):
118118
self.assertEqual(document.encoding, MUT.Encoding.UTF8)
119119

120120
def test_constructor_explicit(self):
121-
import gcloud.language.document as MUT
121+
import google.cloud.language.document as MUT
122122

123123
client = object()
124124
gcs_url = 'gs://some-bucket/some-obj.html'

unit_tests/logging/test__gax.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
try:
1919
# pylint: disable=unused-import
20-
import gcloud.logging._gax
20+
import google.cloud.logging._gax
2121
# pylint: enable=unused-import
2222
except ImportError: # pragma: NO COVER
2323
_HAVE_GAX = False

unit_tests/monitoring/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def test_resource_factory(self):
185185
def test_timeseries_factory_gauge(self):
186186
import datetime
187187
from unit_tests._testing import _Monkey
188-
import gcloud.monitoring.client
188+
import google.cloud.monitoring.client
189189
METRIC_TYPE = 'custom.googleapis.com/my_metric'
190190
METRIC_LABELS = {
191191
'status': 'successful'

unit_tests/pubsub/test__gax.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
try:
1919
# pylint: disable=unused-import
20-
import gcloud.pubsub._gax
20+
import google.cloud.pubsub._gax
2121
# pylint: enable=unused-import
2222
except ImportError: # pragma: NO COVER
2323
_HAVE_GAX = False

0 commit comments

Comments
 (0)