Created
January 29, 2022 22:54
-
-
Save a5ync/2231c572a17708869c788f589da3b86c to your computer and use it in GitHub Desktop.
Decompress git objects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import zlib | |
| import sys | |
| print sys.argv | |
| if len(sys.argv) > 1: | |
| compressed_content = open(sys.argv[1], 'rb').read() | |
| decompressed = zlib.decompress(compressed_content) | |
| print decompressed | |
| else: | |
| print 'input file not provided' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment