I'm looking to access the content files that were changed in a github pull request using pygithub. I've managed to get a list of the files using
repo = gh.get_repo(repo_url)
pr = repo.get_pull(30)
for file in pr.get_files():
print(file)
But I don't know how to access the contents of the file. I see it has a filename and sha.