summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>1997-09-04 23:39:23 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>1997-09-04 23:39:23 (GMT)
commitcb914048907abe65ed2ada5cb9b638b394a39cc0 (patch)
tree4ed7dcbe4bcf80ebd686f339f1a9056671e385b0 /Lib
parent898c915a31633b9df3294382c0499d2ebca4fb2f (diff)
downloadcpython-cb914048907abe65ed2ada5cb9b638b394a39cc0.zip
cpython-cb914048907abe65ed2ada5cb9b638b394a39cc0.tar.gz
cpython-cb914048907abe65ed2ada5cb9b638b394a39cc0.tar.bz2
Several changes:
1. Fix bug in (de)compression objects. The final string resize used zst.total_out to determine the length of the string, but the (de)compression object will output data a little bit at a time, which means total_out is not the string size. Fix: save original value of total_out at the start of the call. 2. Be sure to Py_DECREF the result value if you exit with an exception. 3. Use PyInt_FromLong instead of Py_BuildValue 4. include more constants from the zlib header file 5. Use PyErr_Format instead of using a local buffer and sprintf.
Diffstat (limited to 'Lib')
0 files changed, 0 insertions, 0 deletions