Skip to content

Commit

Permalink
Set endpoint on instance variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 committed Jul 29, 2019
1 parent 98a21ea commit b80ea4b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions translate/google/cloud/translate_v2/_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ class Connection(_http.JSONConnection):
DEFAULT_API_ENDPOINT = "https://translation.googleapis.com"

def __init__(self, client, client_info=None, api_endpoint=DEFAULT_API_ENDPOINT):
Connection.API_BASE_URL = api_endpoint
super(Connection, self).__init__(client, client_info)

self.API_BASE_URL = api_endpoint
self._client_info.gapic_version = __version__
self._client_info.client_library_version = __version__

Expand Down

0 comments on commit b80ea4b

Please sign in to comment.