summaryrefslogtreecommitdiffstats
path: root/Modules/_posixsubprocess.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2015-04-25 23:42:38 (GMT)
committerGregory P. Smith <greg@krypto.org>2015-04-25 23:42:38 (GMT)
commit4dff6f6fa6bfdc14c570d0c6a63021640203e1a6 (patch)
tree0748440dd4b6782350481e768aa3ec56b48426e3 /Modules/_posixsubprocess.c
parent8cb6569fe14ba8e57ab1a2bea68594747852a9d1 (diff)
downloadcpython-4dff6f6fa6bfdc14c570d0c6a63021640203e1a6.zip
cpython-4dff6f6fa6bfdc14c570d0c6a63021640203e1a6.tar.gz
cpython-4dff6f6fa6bfdc14c570d0c6a63021640203e1a6.tar.bz2
Issue9951: update _hashopenssl and md5module to use _Py_strhex().
Also update _posixsubprocess to use Py_hexdigits instead of its own constant.
Diffstat (limited to 'Modules/_posixsubprocess.c')
-rw-r--r--Modules/_posixsubprocess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c
index 39914c5..00989bc 100644
--- a/Modules/_posixsubprocess.c
+++ b/Modules/_posixsubprocess.c
@@ -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);