Skip to content

Commit 9b55f2e

Browse files
authored
Remove unicode import, explicit unicode string
1 parent 365fc48 commit 9b55f2e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apitools/base/py/credentials_lib.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# limitations under the License.
1616

1717
"""Common credentials classes and constructors."""
18-
from __future__ import unicode_literals
1918
from __future__ import print_function
2019

2120
import contextlib
@@ -356,7 +355,7 @@ def _ScopesFromMetadataServer(self, scopes):
356355
def GetServiceAccount(self, account):
357356
relative_url = 'instance/service-accounts'
358357
response = _GceMetadataRequest(relative_url)
359-
response_lines = [six.ensure_text(line).rstrip('/\n\r')
358+
response_lines = [six.ensure_text(line).rstrip(u'/\n\r')
360359
for line in response.readlines()]
361360
return account in response_lines
362361

0 commit comments

Comments
 (0)