Mercurial > rinkhals
comparison zlibcat @ 501:1da14b3d8773
Utility for examining compressed save games.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Thu, 26 Nov 2009 00:31:54 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
500:4d980444ebfb | 501:1da14b3d8773 |
---|---|
1 #!/usr/bin/python | |
2 | |
3 import zlib | |
4 | |
5 def main(args): | |
6 filenames = args[1:] | |
7 | |
8 try: | |
9 for name in filenames: | |
10 print zlib.decompress(open(name).read()) | |
11 except IOError, e: | |
12 if e.errno != 32: | |
13 raise | |
14 | |
15 if __name__ == "__main__": | |
16 import sys | |
17 sys.exit(main(sys.argv)) |