◐ Shell
clean mode source ↗

[3.6] bpo-27340: Use memoryview in SSLSocket.sendall() (GH-3384) by tiran · Pull Request #3434 · python/cpython

  • bpo-27340: Use memoryview in SSLSocket.sendall()

SSLSocket.sendall() now uses memoryview to create slices of data. This fix
support for all bytes-like object. It is also more efficient and avoids
costly copies.

Signed-off-by: Christian Heimes christian@python.org

  • Cast view to bytes, fix typo

Signed-off-by: Christian Heimes christian@python.org.
(cherry picked from commit 888bbdc)

https://bugs.python.org/issue27340