commit | eda5880efd1bbc91d533d3c6f573c3ab9b28b627 | [log] [tgz] |
---|---|---|
author | Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> | Wed Jul 24 14:20:51 2019 -0700 |
committer | GitHub <noreply@github.com> | Wed Jul 24 14:20:51 2019 -0700 |
tree | 621203947dacce4c2c54a889f78e635b9d101854 | |
parent | 0ba1ca4435aab90bea35a155a2875fa0842b8023 [diff] |
Decode service to utf-8. (#723)
diff --git a/googleapiclient/discovery.py b/googleapiclient/discovery.py index 3359593..771d9fc 100644 --- a/googleapiclient/discovery.py +++ b/googleapiclient/discovery.py
@@ -333,6 +333,8 @@ if isinstance(service, six.string_types): service = json.loads(service) + elif isinstance(service, six.binary_type): + service = json.loads(service.decode('utf-8')) if 'rootUrl' not in service and (isinstance(http, (HttpMock, HttpMockSequence))):