Skip to content

Commit

Permalink
Merge pull request #362 from tseaver/361-open_privkey_file_in_binary_…
Browse files Browse the repository at this point in the history
…mode

Open privkey file in binary mode.
  • Loading branch information
tseaver committed Nov 10, 2014
2 parents efae0ef + c4bea88 commit 3d6ffa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcloud/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ def get_for_service_account(client_email, private_key_path, scope=None):
"""
return client.SignedJwtAssertionCredentials(
service_account_name=client_email,
private_key=open(private_key_path).read(),
private_key=open(private_key_path, 'rb').read(),
scope=scope)

0 comments on commit 3d6ffa1

Please sign in to comment.