(awesome_title)
Loads the cached readme content

    Args:
        awesome_title: Awesome repository title

    Returns:
        A string of cached readme content, None if there is no cached readme
Loads the cached readme content
Loads the cached readme content
def load_readme(awesome_title):
    """Loads the cached readme content

    Args:
        awesome_title: Awesome repository title

    Returns:
        A string of cached readme content, None if there is no cached readme
    """
    awesome_cache_directory = os.path.join(CACHE_DIRECTORY, awesome_title)
    awesome_cached_readme = os.path.join(awesome_cache_directory, 'README.md')
    if not os.path.exists(awesome_cache_directory):
        raise NotADirectoryError('{} does not exists'.format(awesome_cache_directory))
    if not os.path.exists(awesome_cached_readme):
        raise FileNotFoundError('{} does not exists'.format(awesome_cached_readme))
    with open(awesome_cached_readme, 'r', encoding='utf8') as readme_md:
        return readme_md.read()
def load_readme ( awesome_title ) : awesome_cache_directory = os . path . join ( CACHE_DIRECTORY , awesome_title ) awesome_cached_readme = os . path . join ( awesome_cache_directory , 'README.md' ) if not os . path . exists ( awesome_cache_directory ) : raise NotADirectoryError ( '{} does not exists' . format ( awesome_cache_directory ) ) if not os . path . exists ( awesome_cached_readme ) : raise FileNotFoundError ( '{} does not exists' . format ( awesome_cached_readme ) ) with open ( awesome_cached_readme , 'r' , encoding = 'utf8' ) as readme_md : return readme_md . read ( )