[Python-3000-checkins] r55267 - python/branches/p3yk/Doc/tools/mkackshtml
neal.norwitz
python-3000-checkins at python.org
Fri May 11 18:21:05 CEST 2007
Author: neal.norwitz
Date: Fri May 11 18:21:02 2007
New Revision: 55267
Modified:
python/branches/p3yk/Doc/tools/mkackshtml
Log:
Really get doc to build (remove use of string module)
Modified: python/branches/p3yk/Doc/tools/mkackshtml
==============================================================================
--- python/branches/p3yk/Doc/tools/mkackshtml (original)
+++ python/branches/p3yk/Doc/tools/mkackshtml Fri May 11 18:21:02 2007
@@ -1,7 +1,6 @@
#! /usr/bin/env python
# -*- Python -*-
-import string
import support
import sys
@@ -12,7 +11,7 @@
line = fp.readline()
if not line:
break
- line = string.strip(line)
+ line = line.strip()
if line:
names.append(line)
else:
@@ -32,7 +31,7 @@
colnums.append(percol*i)
options.aesop_type = "information"
fp = options.get_output_file()
- fp.write(string.rstrip(options.get_header()) + "\n")
+ fp.write(options.get_header().rstrip() + "\n")
fp.write(THANKS + "\n")
fp.write('<table width="100%" align="center">\n')
for i in range(percol):
@@ -44,7 +43,7 @@
pass
fp.write(" </tr>\n")
fp.write("</table>\n")
- fp.write(string.rstrip(options.get_footer()) + "\n")
+ fp.write(options.get_footer().rstrip() + "\n")
fp.close()
THANKS = '''\
More information about the Python-3000-checkins
mailing list