I seem to remember that the Python gzip module previously allowed you to read non-gzipped files transparently. This was really useful, as it allowed to read an input file wh
You can iterate over files transparently using fileinput(files, openhook=fileinput.hook_compressed)