We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 365fc48 commit 9b55f2eCopy full SHA for 9b55f2e
apitools/base/py/credentials_lib.py
@@ -15,7 +15,6 @@
15
# limitations under the License.
16
17
"""Common credentials classes and constructors."""
18
-from __future__ import unicode_literals
19
from __future__ import print_function
20
21
import contextlib
@@ -356,7 +355,7 @@ def _ScopesFromMetadataServer(self, scopes):
356
355
def GetServiceAccount(self, account):
357
relative_url = 'instance/service-accounts'
358
response = _GceMetadataRequest(relative_url)
359
- response_lines = [six.ensure_text(line).rstrip('/\n\r')
+ response_lines = [six.ensure_text(line).rstrip(u'/\n\r')
360
for line in response.readlines()]
361
return account in response_lines
362
0 commit comments