Whitespace normalization.

This commit is contained in:
Fred Drake 2001-12-06 20:51:35 +00:00
parent bcd8975740
commit b94b849d65
21 changed files with 210 additions and 216 deletions

View File

@ -174,9 +174,9 @@ class BCPPCompiler(CCompiler) :
if extra_postargs:
lib_args.extend (extra_postargs)
try:
self.spawn ([self.lib] + lib_args)
self.spawn ([self.lib] + lib_args)
except DistutilsExecError, msg:
raise LibError, msg
raise LibError, msg
else:
self.announce ("skipping %s (up-to-date)" % output_filename)

View File

@ -439,4 +439,3 @@ def get_versions():
else:
dllwrap_version = None
return (gcc_version, ld_version, dllwrap_version)

View File

@ -62,13 +62,13 @@ class MWerksCompiler (CCompiler) :
debug=0,
extra_preargs=None,
extra_postargs=None):
(output_dir, macros, include_dirs) = \
self._fix_compile_args (output_dir, macros, include_dirs)
self.__sources = sources
self.__macros = macros
self.__include_dirs = include_dirs
# Don't need extra_preargs and extra_postargs for CW
return []
(output_dir, macros, include_dirs) = \
self._fix_compile_args (output_dir, macros, include_dirs)
self.__sources = sources
self.__macros = macros
self.__include_dirs = include_dirs
# Don't need extra_preargs and extra_postargs for CW
return []
def link (self,
target_desc,
@ -207,13 +207,11 @@ class MWerksCompiler (CCompiler) :
## filename = macurl2path(filename)
filename = distutils.util.convert_path(filename)
if not os.path.isabs(filename):
curdir = os.getcwd()
filename = os.path.join(curdir, filename)
curdir = os.getcwd()
filename = os.path.join(curdir, filename)
# Finally remove .. components
components = string.split(filename, ':')
for i in range(1, len(components)):
if components[i] == '..':
components[i] = ''
if components[i] == '..':
components[i] = ''
return string.join(components, ':')

View File

@ -382,4 +382,3 @@ line 3 \\
test_input (6, "join lines with collapsing", in_file, result6)
os.remove (filename)

View File

@ -103,8 +103,8 @@ class UnixCCompiler (CCompiler):
pp_args.extend(extra_postargs)
# We need to preprocess: either we're being forced to, or we're
# generating output to stdout, or there's a target output file and
# the source file is newer than the target (or the target doesn't
# generating output to stdout, or there's a target output file and
# the source file is newer than the target (or the target doesn't
# exist).
if self.force or output_file is None or newer(source, output_file):
if output_file:

View File

@ -453,5 +453,3 @@ def rfc822_escape (header):
lines = map(string.strip, lines)
header = string.join(lines, '\n' + 8*' ')
return header