commit | 38c30e6c8e34241a1ea226fdd4ff74be6a8ee846 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Tue Feb 03 18:51:58 2015 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Tue Feb 03 18:51:58 2015 +0200 |
tree | cfbe7c536c08399090a715862da78e6f98003eb2 | |
parent | 06bb1226d18e657a36ddd492ec88c16c9108323b [diff] |
Issue #15381: Fixed a bug in BytesIO.write(). It was expected that string_size == PyBytes_GET_SIZE(buf) if the buffer is shared, but truncate() and __setstate__() can set string_size without unsharing the buffer.