def getrawfile(self, project_id, sha1, filepath):
        """
        Get the raw file contents for a file by commit SHA and path.

        :param project_id: The ID of a project
        :param sha1: The commit or branch name
        :param filepath: The path the file
        :return: raw file contents
        """
        data = {'filepath': filepath}

        request = requests.get(
            '{0}/{1}/repository/blobs/{2}'.format(self.projects_url, project_id, sha1),
            params=data, verify=self.verify_ssl, auth=self.auth, timeout=self.timeout,
            headers=self.headers)

        if request.status_code == 200:
            return request.content
        else:
            return False
def getrawfile ( self , project_id , sha1 , filepath ) : data = { 'filepath' : filepath } request = requests . get ( '{0}/{1}/repository/blobs/{2}' . format ( self . projects_url , project_id , sha1 ) , params = data , verify = self . verify_ssl , auth = self . auth , timeout = self . timeout , headers = self . headers ) if request . status_code == 200 : return request . content else : return False
Get the raw file contents for a file by commit SHA and path.

        :param project_id: The ID of a project
        :param sha1: The commit or branch name
        :param filepath: The path the file
        :return: raw file contents