]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45831: _Py_DumpASCII() uses a single write() call if possible (GH-29596) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 17 Nov 2021 21:59:42 +0000 (13:59 -0800)
committerGitHub <noreply@github.com>
Wed, 17 Nov 2021 21:59:42 +0000 (22:59 +0100)
commitac89f8cab79800195687dd141de472f90c626ec3
tree394fd842d019152025ba9497aee10339982ec4b3
parentfd206b680705de3e0408fd29c7943317563e61e1
bpo-45831: _Py_DumpASCII() uses a single write() call if possible (GH-29596) (GH-29597)

If the string is ASCII only and doesn't need to escape characters,
write the whole string with a single write() syscall.
(cherry picked from commit b919d8105c4d77f00509b6d3ab2073f09db640de)

Co-authored-by: Victor Stinner <vstinner@python.org>
Misc/NEWS.d/next/Library/2021-11-17-19-25-37.bpo-45831.9-TojK.rst [new file with mode: 0644]
Python/traceback.c