mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue9951: update _hashopenssl and md5module to use _Py_strhex().
Also update _posixsubprocess to use Py_hexdigits instead of its own constant.
This commit is contained in:
parent
8cb6569fe1
commit
4dff6f6fa6
3 changed files with 6 additions and 41 deletions
|
@ -504,7 +504,7 @@ error:
|
|||
_Py_write_noraise(errpipe_write, "OSError:", 8);
|
||||
cur = hex_errno + sizeof(hex_errno);
|
||||
while (saved_errno != 0 && cur > hex_errno) {
|
||||
*--cur = "0123456789ABCDEF"[saved_errno % 16];
|
||||
*--cur = Py_hexdigits[saved_errno % 16];
|
||||
saved_errno /= 16;
|
||||
}
|
||||
_Py_write_noraise(errpipe_write, cur, hex_errno + sizeof(hex_errno) - cur);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue