From 071972e426c9782611bd5b66f036d35d809f7ee4 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Wed, 16 Oct 2002 15:30:17 +0000 Subject: Use string methods. --- Doc/tools/toc2bkm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Doc/tools/toc2bkm.py') 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 -- cgit v1.2.1