summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/cmd.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-03-22 03:48:31 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2001-03-22 03:48:31 (GMT)
commitac20f773f3b625121ff5f593fbb9f0934bfb8d8e (patch)
tree9a0b4a3b1214a8796d6784abd95a0127d1c745c9 /Lib/distutils/cmd.py
parenta7f225d88af3b7a77b0fd8c0ed6129b46c5af865 (diff)
downloadcpython-ac20f773f3b625121ff5f593fbb9f0934bfb8d8e.zip
cpython-ac20f773f3b625121ff5f593fbb9f0934bfb8d8e.tar.gz
cpython-ac20f773f3b625121ff5f593fbb9f0934bfb8d8e.tar.bz2
Back out conversion to string methods; the Distutils is intended to work
with 1.5.2
Diffstat (limited to 'Lib/distutils/cmd.py')
-rw-r--r--Lib/distutils/cmd.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/distutils/cmd.py b/Lib/distutils/cmd.py
index cec4bff..ce44829 100644
--- a/Lib/distutils/cmd.py
+++ b/Lib/distutils/cmd.py
@@ -9,7 +9,7 @@ in the distutils.command package.
__revision__ = "$Id$"
-import sys, os, re
+import sys, os, string, re
from types import *
from distutils.errors import *
from distutils import util, dir_util, file_util, archive_util, dep_util
@@ -161,7 +161,7 @@ class Command:
print indent + header
indent = indent + " "
for (option, _, _) in self.user_options:
- option = option.translate(longopt_xlate)
+ option = string.translate(option, longopt_xlate)
if option[-1] == "=":
option = option[:-1]
value = getattr(self, option)
@@ -421,7 +421,7 @@ class Command:
"""
if exec_msg is None:
exec_msg = "generating %s from %s" % \
- (outfile, ', '.join(infiles))
+ (outfile, string.join(infiles, ', '))
if skip_msg is None:
skip_msg = "skipping %s (inputs unchanged)" % outfile