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
In Python 3.x, using gsutil with a keyfile in Windows environments causes an
expected str() got bytes
error. Usingio.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