

def patch(self):
    'Retrieve the patch formatted diff for this commit.\n\n        :returns: the patch as a bytes object\n        :rtype: bytes\n        '
    resp = self._get(self._api, headers={
        'Accept': 'application/vnd.github.patch',
    })
    return (resp.content if self._boolean(resp, 200, 404) else b'')

dataset/ETHPy150Open sigmavirus24/github3.py/github3/repos/comparison.py Comparison.patch/original