Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle if registry toml is larger than 1MB (#356)
* Try fixing #350 !!! This is untested! This is according to PyGithub/PyGithub#2345 (comment) Locally I tested that the following works correctly: ```python In [24]: from github import Github, Auth In [25]: auth = Auth.Token(token) In [26]: g = Github(auth=auth) In [27]: repo = g.get_repo("JuliaRegistries/General") In [28]: registry_toml = repo.get_contents("Registry.toml") In [39]: blob = repo.get_git_blob(registry_toml.sha) In [40]: b64 = base64.b64decode(blob.content) In [41]: b64.decode("utf8") ``` * Update test_repo.py * fix formatting
- Loading branch information