]> granicus.if.org Git - python/commit
Based on a suggestion from bruce@hams.com, make a trivial change to
authorAndrew M. Kuchling <amk@amk.ca>
Thu, 25 Mar 1999 21:49:14 +0000 (21:49 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Thu, 25 Mar 1999 21:49:14 +0000 (21:49 +0000)
commitf4f119c05538f5ae102148a0e6463c2f3fce445d
treeae60d5f17afc4fb20b3624eac15898c1aa112b18
parent52a0d7d802f802a7b613ea72701b0e103635000b
Based on a suggestion from bruce@hams.com, make a trivial change to
allow using the 'a' flag as a mode for opening a GzipFile.  gzip
files, surprisingly enough, can be concatenated and then decompressed;
the effect is to concatenate the two chunks of data.

If we support it on writing, it should also be supported on reading.
This *wasn't* trivial, and required rearranging the code in the
reading path, particularly the _read() method.

Raise IOError instead of RuntimeError in two cases, 'Not a gzipped file'
and 'Unknown compression method'
Lib/gzip.py