summaryrefslogtreecommitdiffstats
path: root/Doc/ext
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>1999-03-25 21:49:14 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>1999-03-25 21:49:14 (GMT)
commitf4f119c05538f5ae102148a0e6463c2f3fce445d (patch)
treeae60d5f17afc4fb20b3624eac15898c1aa112b18 /Doc/ext
parent52a0d7d802f802a7b613ea72701b0e103635000b (diff)
downloadcpython-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 'Doc/ext')
0 files changed, 0 insertions, 0 deletions