Issue #13088: Add shared Py_hexdigits constant to format a number into base 16

This commit is contained in:
Victor Stinner 2011-10-14 02:13:11 +02:00
parent e506437b52
commit f5cff56a1b
16 changed files with 118 additions and 135 deletions

View file

@ -1058,7 +1058,7 @@ static char
char_from_hex(int x)
{
assert(0 <= x && x < 16);
return "0123456789abcdef"[x];
return Py_hexdigits[x];
}
static int