GoogleCloudPlatform / gcs-oauth2-boto-plugin

Auth plugin allowing use the use of OAuth 2.0 credentials for Google Cloud Storage in the Boto library.
Apache License 2.0
21 stars 38 forks source link

Use io.open for compatibility #44

Closed catleeball closed 5 years ago

catleeball commented 5 years ago

In Python 3.x, using gsutil with a keyfile in Windows environments causes an expected str() got bytes error. Using io.open() here helps alleviate this.

CI test logs to gsutil Windows runs, pointing to gcp/gsutil : ioopen branch, whose build script is modified to checkout gcs-oauth2 plugin on this branch: go/gsutil-ioopen-pr-logs

See also: https://github.com/GoogleCloudPlatform/gsutil/pull/747 Bug: b/130652889