String method cleanup.

This commit is contained in:
Eric S. Raymond 2001-02-10 00:22:33 +00:00
parent c8c6aa201f
commit 6e025bcde8
5 changed files with 7 additions and 13 deletions

View file

@ -104,7 +104,7 @@ def main():
match = prog.match(line)
if match:
name, val = match.group(1, 2)
val = string.atoi(val)
val = int(val)
tokens[val] = name # reverse so we can sort them...
keys = tokens.keys()
keys.sort()