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:
Gregory P. Smith 2015-04-25 23:42:38 +00:00
parent 8cb6569fe1
commit 4dff6f6fa6
3 changed files with 6 additions and 41 deletions

View file

@ -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);