SF bug #1224347: int/long unification and hex()

Hex longs now print with lowercase letters like their int counterparts.
This commit is contained in:
Raymond Hettinger 2005-06-29 23:29:56 +00:00
parent d4128f397d
commit 3296e696db
4 changed files with 11 additions and 14 deletions

View file

@ -208,7 +208,7 @@ class LongTest(unittest.TestCase):
digits = digits or [0]
return '-'[:sign] + \
{8: '0', 10: '', 16: '0x'}[base] + \
"".join(map(lambda i: "0123456789ABCDEF"[i], digits)) + "L"
"".join(map(lambda i: "0123456789abcdef"[i], digits)) + "L"
def check_format_1(self, x):
for base, mapper in (8, oct), (10, repr), (16, hex):