Mercurial > cpython-lru_cache-weakref
diff Lib/distutils/cmd.py @ 17129:32bcb4e21005 legacy-trunk
Back out conversion to string methods; the Distutils is intended to work
with 1.5.2
| author | Andrew M. Kuchling <amk@amk.ca> |
|---|---|
| date | Thu, 22 Mar 2001 03:48:31 +0000 |
| parents | eee67a84e5fa |
| children | 44a62e3b706f |
line wrap: on
line diff
--- a/Lib/distutils/cmd.py Thu Mar 22 03:10:05 2001 +0000 +++ b/Lib/distutils/cmd.py Thu Mar 22 03:48:31 2001 +0000 @@ -9,7 +9,7 @@ __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 @@ 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 @@ """ 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
