Skip to content

Commit a88871b

Browse files
committed
Fix loading json for Python3
1 parent a944f71 commit a88871b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bigquery/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ def get_client(project_id, credentials=None, service_account=None,
8282
private_key = key_file.read()
8383

8484
if json_key_file:
85-
with open(json_key_file, 'rb') as key_file:
86-
json_key = json.loads(key_file.read())
85+
with open(json_key_file, 'r') as key_file:
86+
json_key = json.load(key_file)
8787

8888
if json_key:
8989
service_account = json_key['client_email']

0 commit comments

Comments
 (0)