SIGN IN SIGN UP

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.
S
Serhiy Storchaka committed
38c30e6c8e34241a1ea226fdd4ff74be6a8ee846
Parent: 06bb122