[Python-checkins] CVS: python/dist/src/Lib token.py,1.9,1.10
Eric S. Raymond
esr@users.sourceforge.net
Fri, 09 Feb 2001 16:20:18 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv24901
Modified Files:
token.py
Log Message:
String method cleanup.
Index: token.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/token.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** token.py 2001/02/09 11:10:16 1.9
--- token.py 2001/02/10 00:20:16 1.10
***************
*** 105,109 ****
if match:
name, val = match.group(1, 2)
! val = string.atoi(val)
tokens[val] = name # reverse so we can sort them...
keys = tokens.keys()
--- 105,109 ----
if match:
name, val = match.group(1, 2)
! val = int(val)
tokens[val] = name # reverse so we can sort them...
keys = tokens.keys()