def loadfile(filename, cache=None):
 _SECRET_NAMESPACE = 'oauth2client:secrets#ns'
 if (not cache):
  return _loadfile(filename)
 obj = cache.get(filename, namespace=_SECRET_NAMESPACE)
 if (obj is None):
  (client_type, client_info) = _loadfile(filename)
  obj = {client_type: client_info}
  cache.set(filename, obj, namespace=_SECRET_NAMESPACE)
 return next(six.iteritems(obj))

def loadfile ( filename , cache = None ) : _SECRET_NAMESPACE = 'oauth2client:secrets#ns' if ( not cache ) : return _loadfile ( filename ) obj = cache . get ( filename , namespace = _SECRET_NAMESPACE ) if ( obj is None ) : ( client_type , client_info ) = _loadfile ( filename ) obj = { client_type : client_info } cache . set ( filename , obj , namespace = _SECRET_NAMESPACE ) return next ( six . iteritems ( obj ) )
loading of client_secrets json file .