def get_credential_storage(filename, client_id, user_agent, scope, warn_on_readonly=True):
 filename = os.path.realpath(os.path.expanduser(filename))
 _multistores_lock.acquire()
 try:
  multistore = _multistores.setdefault(filename, _MultiStore(filename, warn_on_readonly))
 finally:
  _multistores_lock.release()
 if (type(scope) is list):
  scope = ' '.join(scope)
 return multistore._get_storage(client_id, user_agent, scope)

def get_credential_storage ( filename , client_id , user_agent , scope , warn_on_readonly = True ) : filename = os . path . realpath ( os . path . expanduser ( filename ) ) _multistores_lock . acquire ( ) try : multistore = _multistores . setdefault ( filename , _MultiStore ( filename , warn_on_readonly ) ) finally : _multistores_lock . release ( ) if ( type ( scope ) is list ) : scope = ' ' . join ( scope ) return multistore . _get_storage ( client_id , user_agent , scope )
get a storage instance for a credential .