diff options
author | Andrew M. Kuchling <amk@amk.ca> | 1999-03-25 21:49:14 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 1999-03-25 21:49:14 (GMT) |
commit | f4f119c05538f5ae102148a0e6463c2f3fce445d (patch) | |
tree | ae60d5f17afc4fb20b3624eac15898c1aa112b18 /Lib/test | |
parent | 52a0d7d802f802a7b613ea72701b0e103635000b (diff) | |
download | cpython-f4f119c05538f5ae102148a0e6463c2f3fce445d.zip cpython-f4f119c05538f5ae102148a0e6463c2f3fce445d.tar.gz cpython-f4f119c05538f5ae102148a0e6463c2f3fce445d.tar.bz2 |
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'
Diffstat (limited to 'Lib/test')
0 files changed, 0 insertions, 0 deletions