diff options
author | Victor Stinner <vstinner@python.org> | 2020-04-15 12:05:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 12:05:24 (GMT) |
commit | 455df9779873b8335b20292b8d0c43d66338a4db (patch) | |
tree | ea819b9d6b534e8fb5eaa58dc5b2bae64e475a18 /install-sh | |
parent | a86b522d8f1c8b9c26b5550de221d2227158cf4d (diff) | |
download | cpython-455df9779873b8335b20292b8d0c43d66338a4db.zip cpython-455df9779873b8335b20292b8d0c43d66338a4db.tar.gz cpython-455df9779873b8335b20292b8d0c43d66338a4db.tar.bz2 |
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 'install-sh')
0 files changed, 0 insertions, 0 deletions