STINNER Victor added the comment:
test.jml is a ZIP archive, not a gzip archive.
"gzip -d" is kind enough to unpack it even if it is ZIP file and not a gzip
file.
So it's not a Python bug at all.
--
nosy: +haypo
resolution: -> invalid
status: open -> closed
New submission from Toni Mueller :
I have files that I would like to read with Python, but can't:
$ python jmlreader.py woerter-allg.jml
Traceback (most recent call last):
File "jmlreader.py", line 14, in
readFile(sys.argv[1])
File "jmlreader.py", line 10, in readFile
for line in f: