view zlibcat @ 558:5cdf26bde2f2

Botanical biodiversity.
author Jeremy Thurgood <firxen@gmail.com>
date Sat, 28 Nov 2009 18:20:55 +0000
parents 1da14b3d8773
children
line wrap: on
line source

#!/usr/bin/python

import zlib

def main(args):
    filenames = args[1:]

    try:
        for name in filenames:
            print zlib.decompress(open(name).read())
    except IOError, e:
        if e.errno != 32:
            raise

if __name__ == "__main__":
    import sys
    sys.exit(main(sys.argv))