Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Open privkey file in binary mode.
Fixes #361.
  • Loading branch information
tseaver committed Nov 10, 2014
commit c4bea8805ede4247df3bce10f23e123e98944c0d
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)