summaryrefslogtreecommitdiff
path: root/Lib/test/test_pydoc.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-04-15 14:05:24 +0200
committerGitHub <noreply@github.com>2020-04-15 14:05:24 +0200
commit455df9779873b8335b20292b8d0c43d66338a4db (patch)
treeea819b9d6b534e8fb5eaa58dc5b2bae64e475a18 /Lib/test/test_pydoc.py
parenta86b522d8f1c8b9c26b5550de221d2227158cf4d (diff)
downloadcpython-git-455df9779873b8335b20292b8d0c43d66338a4db.tar.gz
Optimize _Py_strhex_impl() (GH-19535)
Avoid a temporary buffer to create a bytes string: use PyBytes_FromStringAndSize() to directly allocate a bytes object. Cleanup also the code: PEP 7 formatting, move variable definitions closer to where they are used. Fix assertion checking "j" index.
Diffstat (limited to 'Lib/test/test_pydoc.py')
0 files changed, 0 insertions, 0 deletions