Module gzipstream
source code
GzipStream & GzipStreamXL Classes
GzipStream (Python v1.5.2 - v2.2.*):
A streaming gzip handler.
gzipstream.GzipStream extends the functionality of the gzip.GzipFile class
to allow the processing of streaming data.
This is done by buffering the stream as it passes through (a seekable
object is needed).
GzipStreamXL (Python v1.5.2/v2.1.* --- ie. not v2.2.*):
A streaming gzip handler for very large files.
_StreamBuf:
Allow seeks on socket-like objects -- support GzipStream class.
Enables non-seekable file-like objects some flexibility as regards to
seeking. It does this via a buffer, a StringIO object. Note, because
it is assumed that a socket stream is being manipulated, once the buffer
"window" has passed over a data segment, seeking prior to that is not
allowed.
XXX: Eventually, I wish to merge this with the gzip.GzipFile somehow and
submit to the python folks.
Author: Todd Warner <taw@redhat.com>
Copyright (c) 2002-2010, Red Hat, Inc.
Released under Python license and GPLv2 license
|
__getSysVersion()
Return 1 for Python versions 1.5.* and 2.1.* Return 2 for Python
versions 2.2+.* |
source code
|
|
|
_DEBUG_YN = 0
|
|
_SYS_VERSION = 2
|
|
__package__ = None
|