(self, user_repo, branch, prefer_cached=False)
Fetches the raw GitHub API information about a readme

        :param user_repo:
            The user/repo of the repository

        :param branch:
            The branch to pull the readme from

        :param prefer_cached:
            If a cached version of the info should be returned instead of making a new HTTP request

        :raises:
            DownloaderException: when there is an error downloading
            ClientException: when there is an error parsing the response

        :return:
            A dict containing all of the info from the GitHub API, or None if no readme exists
Fetches the raw GitHub API information about a readme
Fetches the raw GitHub API information about a readme
def _readme_info(self, user_repo, branch, prefer_cached=False):
        """
        Fetches the raw GitHub API information about a readme

        :param user_repo:
            The user/repo of the repository

        :param branch:
            The branch to pull the readme from

        :param prefer_cached:
            If a cached version of the info should be returned instead of making a new HTTP request

        :raises:
            DownloaderException: when there is an error downloading
            ClientException: when there is an error parsing the response

        :return:
            A dict containing all of the info from the GitHub API, or None if no readme exists
        """

        query_string = urlencode({'ref': branch})
        readme_url = self._make_api_url(user_repo, '/readme?%s' % query_string)
        try:
            return self.fetch_json(readme_url, prefer_cached)
        except (DownloaderException) as e:
            if str(e).find('HTTP error 404') != -1:
                return None
            raise
def _readme_info ( self , user_repo , branch , prefer_cached = False ) : query_string = urlencode ( { 'ref' : branch } ) readme_url = self . _make_api_url ( user_repo , '/readme?%s' % query_string ) try : return self . fetch_json ( readme_url , prefer_cached ) except ( DownloaderException ) as e : if str ( e ) . find ( 'HTTP error 404' ) != - 1 : return None raise