reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1 2 3 4 5 6 7 8 9 10 11 12 13 | import gzip import sys with gzip.open(sys.argv[1], 'rb') as f: writer = getattr(sys.stdout, 'buffer', None) if writer is None: writer = sys.stdout if sys.platform == "win32": import os, msvcrt msvcrt.setmode(sys.stdout.fileno(),os.O_BINARY) writer.write(f.read()) sys.stdout.flush() |