Skip to content

Commit 29a973c

Browse files
committed
Clean up copy-pasta:
- Copyright year -> 2016. - Pubsub -> Logging. - Other formatting issues from @dhermes' review.
1 parent 1e73dfa commit 29a973c

5 files changed

Lines changed: 12 additions & 13 deletions

File tree

gcloud/logging/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2015 Google Inc. All rights reserved.
1+
# Copyright 2016 Google Inc. All rights reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -12,8 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
"""Google Cloud Logging API wrapper.
16-
"""
15+
"""Google Cloud Logging API wrapper."""
1716

1817
from gcloud.logging.client import Client
1918
from gcloud.logging.connection import Connection

gcloud/logging/client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2015 Google Inc. All rights reserved.
1+
# Copyright 2016 Google Inc. All rights reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
"""Client for interacting with the Google Cloud Pub/Sub API."""
15+
"""Client for interacting with the Google Cloud Logging API."""
1616

1717

1818
from gcloud.client import JSONClient
@@ -23,9 +23,9 @@ class Client(JSONClient):
2323
"""Client to bundle configuration needed for API requests.
2424
2525
:type project: string
26-
:param project: the project which the client acts on behalf of. Will be
27-
passed when creating a topic. If not passed,
28-
falls back to the default inferred from the environment.
26+
:param project: the project which the client acts on behalf of.
27+
If not passed, falls back to the default inferred
28+
from the environment.
2929
3030
:type credentials: :class:`oauth2client.client.OAuth2Credentials` or
3131
:class:`NoneType`

gcloud/logging/connection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2015 Google Inc. All rights reserved.
1+
# Copyright 2016 Google Inc. All rights reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
1818

1919

2020
class Connection(base_connection.JSONConnection):
21-
"""A connection to Google Cloud Pubsub via the JSON REST API.
21+
"""A connection to Google Cloud Logging via the JSON REST API.
2222
2323
:type credentials: :class:`oauth2client.client.OAuth2Credentials`
2424
:param credentials: (Optional) The OAuth2 Credentials to use for this
@@ -45,7 +45,7 @@ class Connection(base_connection.JSONConnection):
4545
'https://www.googleapis.com/auth/logging.write',
4646
'https://www.googleapis.com/auth/logging.admin',
4747
'https://www.googleapis.com/auth/cloud-platform')
48-
"""The scopes required for authenticating as a Cloud Pub/Sub consumer."""
48+
"""The scopes required for authenticating as a Cloud Logging consumer."""
4949

5050
def __init__(self, credentials=None, http=None, api_base_url=None):
5151
super(Connection, self).__init__(credentials=credentials, http=http)

gcloud/logging/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2015 Google Inc. All rights reserved.
1+
# Copyright 2016 Google Inc. All rights reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

gcloud/logging/test_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2015 Google Inc. All rights reserved.
1+
# Copyright 2016 Google Inc. All rights reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)