We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ba1ca4 commit eda5880Copy full SHA for eda5880
googleapiclient/discovery.py
@@ -333,6 +333,8 @@ def build_from_document(
333
334
if isinstance(service, six.string_types):
335
service = json.loads(service)
336
+ elif isinstance(service, six.binary_type):
337
+ service = json.loads(service.decode('utf-8'))
338
339
if 'rootUrl' not in service and (isinstance(http, (HttpMock,
340
HttpMockSequence))):
0 commit comments