summaryrefslogtreecommitdiffstats
path: root/Doc/tools/support.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-02-12 15:30:22 (GMT)
committerFred Drake <fdrake@acm.org>2001-02-12 15:30:22 (GMT)
commitb258bedb138587a30e13bac378b5a00ea5e4c7bf (patch)
tree14d70756acabe28eb2a6e0ac67ab8b1ae1348411 /Doc/tools/support.py
parent90f22fee6bbd577c6d1d9206a143c006e1fe3d6b (diff)
downloadcpython-b258bedb138587a30e13bac378b5a00ea5e4c7bf.zip
cpython-b258bedb138587a30e13bac378b5a00ea5e4c7bf.tar.gz
cpython-b258bedb138587a30e13bac378b5a00ea5e4c7bf.tar.bz2
Jon Nelson <jnelson@users.sourceforge.net>:
Make the documentation tools compatibile with Python 2.0.
Diffstat (limited to 'Doc/tools/support.py')
-rw-r--r--Doc/tools/support.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/tools/support.py b/Doc/tools/support.py
index 86ecc6c..836adf4 100644
--- a/Doc/tools/support.py
+++ b/Doc/tools/support.py
@@ -8,6 +8,7 @@ __version__ = '$Revision$'
import getopt
+import string
import sys
@@ -37,9 +38,9 @@ class Options:
def add_args(self, short=None, long=None):
if short:
- self.__short_args += short
+ self.__short_args = self.__short_args + short
if long:
- self.__long_args += long
+ self.__long_args = self.__long_args + long
def parse(self, args):
try:
@@ -49,10 +50,10 @@ class Options:
sys.stdout = sys.stderr
self.usage()
sys.exit(2)
- self.args += args
+ self.args = self.args + args
for opt, val in opts:
if opt in ("-a", "--address"):
- val = val.strip()
+ val = string.strip(val)
if val:
val = "<address>\n%s\n</address>\n" % val
self.variables["address"] = val