diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-02-09 11:51:27 (GMT) |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-02-09 11:51:27 (GMT) |
commit | fc170b1fd5db978f4e8d4c23c138a7b59df681ec (patch) | |
tree | 3c73ffcba8f5ece8c64a086a362b7fbe65368048 /Lib/distutils | |
parent | d8c628bd59f70b5389c39fd9e6a15cb3e2d46f27 (diff) | |
download | cpython-fc170b1fd5db978f4e8d4c23c138a7b59df681ec.zip cpython-fc170b1fd5db978f4e8d4c23c138a7b59df681ec.tar.gz cpython-fc170b1fd5db978f4e8d4c23c138a7b59df681ec.tar.bz2 |
String method conversion.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/cmd.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/distutils/cmd.py b/Lib/distutils/cmd.py index ce44829..cec4bff 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, string, re +import sys, os, 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 = string.translate(option, longopt_xlate) + option = option.translate(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, string.join(infiles, ', ')) + (outfile, ', '.join(infiles)) if skip_msg is None: skip_msg = "skipping %s (inputs unchanged)" % outfile |