mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Back out conversion to string methods; the Distutils is intended to work
with 1.5.2
This commit is contained in:
parent
a7f225d88a
commit
ac20f773f3
4 changed files with 13 additions and 13 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue