parameters: (sources_cache_dir=None, verbose=False)
return_statement: return parse_sources_data(cache_data, origin=cache_index, model=model)
docstring: Load cached data based on the sources list.
  
      :returns: list of :class:`CachedDataSource` instance with raw
          rosdep data loaded.
      :raises: :exc:`OSError` if cache cannot be read
      :raises: :exc:`IOError` if cache cannot be read
docstring_summary: Load cached data based on the sources list.
docstring_tokens: Load cached data based on the sources list .
function: def load_cached_sources_list(sources_cache_dir=None, verbose=False):
      """
      Load cached data based on the sources list.
  
      :returns: list of :class:`CachedDataSource` instance with raw
          rosdep data loaded.
      :raises: :exc:`OSError` if cache cannot be read
      :raises: :exc:`IOError` if cache cannot be read
      """
      if sources_cache_dir is None:
          sources_cache_dir = get_sources_cache_dir()
      cache_index = os.path.join(sources_cache_dir, 'index')
      if not os.path.exists(cache_index):
          if verbose:
              print("no cache index present, not loading cached sources", file=sys.stderr)
          return []
      with open(cache_index, 'r') as f:
          cache_data = f.read()
      # the loader does all the work
      model = cache_data_source_loader(sources_cache_dir, verbose=verbose)
      return parse_sources_data(cache_data, origin=cache_index, model=model)
function_tokens: def load_cached_sources_list ( sources_cache_dir = None , verbose = False ) : if sources_cache_dir is None : sources_cache_dir = get_sources_cache_dir ( ) cache_index = os . path . join ( sources_cache_dir , 'index' ) if not os . path . exists ( cache_index ) : if verbose : print ( "no cache index present, not loading cached sources" , file = sys . stderr ) return [ ] with open ( cache_index , 'r' ) as f : cache_data = f . read ( ) # the loader does all the work model = cache_data_source_loader ( sources_cache_dir , verbose = verbose ) return parse_sources_data ( cache_data , origin = cache_index , model = model )