Skip to content

Commit 0838d14

Browse files
authored
Merge pull request googleapis#2632 from dhermes/fix-grpc-rel
Using absolute imports in core modules that import grpc.
2 parents cc505bd + e6c4902 commit 0838d14

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

core/google/cloud/_helpers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
This module is not part of the public API surface.
1818
"""
1919

20+
# Avoid the grpc and google.cloud.grpc collision.
21+
from __future__ import absolute_import
22+
2023
import calendar
2124
import datetime
2225
import json

core/google/cloud/_testing.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
"""Shared testing utilities."""
1616

1717

18+
# Avoid the grpc and google.cloud.grpc collision.
19+
from __future__ import absolute_import
20+
21+
1822
class _Monkey(object):
1923
# context-manager for replacing module names in the scope of a test.
2024

core/google/cloud/exceptions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
See: https://cloud.google.com/storage/docs/json_api/v1/status-codes
1818
"""
1919

20+
# Avoid the grpc and google.cloud.grpc collision.
21+
from __future__ import absolute_import
22+
2023
import copy
2124
import json
2225
import six

0 commit comments

Comments
 (0)