Staging
v0.5.1
https://github.com/python/cpython
Revision f4f119c05538f5ae102148a0e6463c2f3fce445d authored by Andrew M. Kuchling on 25 March 1999, 21:49:14 UTC, committed by Andrew M. Kuchling on 25 March 1999, 21:49:14 UTC
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'
1 parent 52a0d7d
History
Tip revision: f4f119c05538f5ae102148a0e6463c2f3fce445d authored by Andrew M. Kuchling on 25 March 1999, 21:49:14 UTC
Based on a suggestion from bruce@hams.com, make a trivial change to
Tip revision: f4f119c
File Mode Size
BeOS
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
Tools
.hgtags -rw-r--r-- 1.4 KB
Makefile.in -rw-r--r-- 17.9 KB
README -rw-r--r-- 36.1 KB
acconfig.h -rw-r--r-- 4.2 KB
config.h.in -rw-r--r-- 12.1 KB
configure -rwxr-xr-x 135.4 KB
configure.in -rw-r--r-- 25.1 KB
install-sh -rwxr-xr-x 2.2 KB

README

back to top