[Python-checkins] python/dist/src/Lib/test test_long.py,1.26,1.27
rhettinger@users.sourceforge.net
rhettinger at users.sourceforge.net
Thu Jun 30 01:29:59 CEST 2005
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14804/Lib/test
Modified Files:
test_long.py
Log Message:
SF bug #1224347: int/long unification and hex()
Hex longs now print with lowercase letters like their int counterparts.
Index: test_long.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_long.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- test_long.py 13 Jun 2005 21:44:48 -0000 1.26
+++ test_long.py 29 Jun 2005 23:29:56 -0000 1.27
@@ -208,7 +208,7 @@
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):
More information about the Python-checkins
mailing list