]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
_PyBytesWriter: simplify code to avoid "prealloc" parameters
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 9 Oct 2015 10:38:53 +0000 (12:38 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 9 Oct 2015 10:38:53 +0000 (12:38 +0200)
commitad7715891e3c6c51b4860e0d496843ee5417206b
treea3680f453a11828c92fa879095e5198b52764920
parent53926a1ce2772ea5dc1c4fb8c19f5f9ae461750d
_PyBytesWriter: simplify code to avoid "prealloc" parameters

Substract preallocate bytes from min_size before calling
_PyBytesWriter_Prepare().
Objects/bytesobject.c
Objects/stringlib/codecs.h
Objects/unicodeobject.c