#NEWLINE# @ staticmethod #NEWLINE# def _create_scoped_credentials( credentials , scope ) : #NEWLINE# #INDENT# 'Create a scoped set of credentials if it is required.\n\n        :type credentials: :class:`oauth2client.client.OAuth2Credentials` or\n                           :class:`NoneType`\n        :param credentials: The OAuth2 Credentials to add a scope to.\n\n        :type scope: list of URLs\n        :param scope: the effective service auth scopes for the connection.\n\n        :rtype: :class:`oauth2client.client.OAuth2Credentials` or\n                :class:`NoneType`\n        :returns: A new credentials object that has a scope added (if needed).\n        ' #NEWLINE# if credentials : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# if credentials . create_scoped_required ( ) : #NEWLINE# #INDENT# credentials = credentials . create_scoped ( scope ) #NEWLINE# #UNINDENT# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# return scope