diff options
author | Fred Drake <fdrake@acm.org> | 2002-10-16 15:30:17 +0000 |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-10-16 15:30:17 +0000 |
commit | 071972e426c9782611bd5b66f036d35d809f7ee4 (patch) | |
tree | ec6f4f3a441a7365759dd13566c334b3d03ad97f /Doc/tools/toc2bkm.py | |
parent | 06912b7702e46a1a31749b31911be4d44ccbdf27 (diff) | |
download | cpython-git-071972e426c9782611bd5b66f036d35d809f7ee4.tar.gz |
Use string methods.
Diffstat (limited to 'Doc/tools/toc2bkm.py')
-rwxr-xr-x | Doc/tools/toc2bkm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tools/toc2bkm.py b/Doc/tools/toc2bkm.py index 45c7ef88c0..636459a315 100755 --- a/Doc/tools/toc2bkm.py +++ b/Doc/tools/toc2bkm.py @@ -58,7 +58,7 @@ def parse_toc(fp, bigpart=None): if m: stype, snum, title, pageno = m.group(1, 2, 3, 4) title = clean_title(title) - entry = (stype, snum, title, string.atoi(pageno), []) + entry = (stype, snum, title, int(pageno), []) if stype == level: toc.append(entry) else: @@ -99,7 +99,7 @@ def clean_title(title): pos = start + 1 else: break - title = string.translate(title, title_trans, "{}") + title = title.translate(title_trans, "{}") return title |