Skip to content

Commit e9ff5eb

Browse files
authored
Merge pull request #3033 from dhermes/no-more-connection-modules
Renaming all remaining connection.py modules as _http.py.
2 parents 4865602 + fbc1b54 commit e9ff5eb

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

packages/google-cloud-language/google/cloud/language/connection.py renamed to packages/google-cloud-language/google/cloud/language/_http.py

File renamed without changes.

packages/google-cloud-language/google/cloud/language/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
import warnings
1919

2020
from google.cloud import client as client_module
21-
from google.cloud.language.connection import Connection
21+
22+
from google.cloud.language._http import Connection
2223
from google.cloud.language.document import Document
2324

2425

packages/google-cloud-language/unit_tests/test_connection.py renamed to packages/google-cloud-language/unit_tests/test__http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class TestConnection(unittest.TestCase):
1919

2020
@staticmethod
2121
def _get_target_class():
22-
from google.cloud.language.connection import Connection
22+
from google.cloud.language._http import Connection
2323

2424
return Connection
2525

packages/google-cloud-language/unit_tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def _make_one(self, *args, **kw):
3636
return self._get_target_class()(*args, **kw)
3737

3838
def test_ctor(self):
39-
from google.cloud.language.connection import Connection
39+
from google.cloud.language._http import Connection
4040

4141
creds = make_mock_credentials()
4242
http = object()

packages/google-cloud-language/unit_tests/test_document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def _get_entities(include_entities):
9797

9898
def make_mock_client(response):
9999
import mock
100-
from google.cloud.language.connection import Connection
100+
from google.cloud.language._http import Connection
101101
from google.cloud.language.client import Client
102102

103103
connection = mock.Mock(spec=Connection)

0 commit comments

Comments
 (0)