Consolidate handling of scopes.
Reviewed in https://codereview.appspot.com/6853060/.
diff --git a/oauth2client/gce.py b/oauth2client/gce.py
index d1b1234..ad27588 100644
--- a/oauth2client/gce.py
+++ b/oauth2client/gce.py
@@ -53,12 +53,10 @@
"""Constructor for AppAssertionCredentials
Args:
- scope: string or list of strings, scope(s) of the credentials being
+ scope: string or iterable of strings, scope(s) of the credentials being
requested.
"""
- if type(scope) is list:
- scope = ' '.join(scope)
- self.scope = scope
+ self.scope = util.scopes_to_string(scope)
super(AppAssertionCredentials, self).__init__(
'ignored' # assertion_type is ignore in this subclass.