From 21d45356b8a22bb3091a97f50b919b57798675f5 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 6 Dec 2001 21:01:19 +0000 Subject: Whitespace normalization. --- Lib/distutils/command/bdist.py | 4 ++-- Lib/distutils/command/bdist_rpm.py | 22 +++++++++++----------- Lib/distutils/command/bdist_wininst.py | 2 +- Lib/distutils/command/build_clib.py | 4 ++-- Lib/distutils/command/build_ext.py | 20 ++++++++++---------- Lib/distutils/command/build_py.py | 6 +++--- Lib/distutils/command/config.py | 4 ++-- Lib/distutils/command/install.py | 10 +++++----- Lib/distutils/command/install_headers.py | 2 +- Lib/distutils/command/install_lib.py | 12 ++++++------ Lib/distutils/command/sdist.py | 10 +++++----- 11 files changed, 48 insertions(+), 48 deletions(-) diff --git a/Lib/distutils/command/bdist.py b/Lib/distutils/command/bdist.py index a75303e..2b1951f 100644 --- a/Lib/distutils/command/bdist.py +++ b/Lib/distutils/command/bdist.py @@ -17,7 +17,7 @@ from distutils.util import get_platform def show_formats (): """Print list of available formats (arguments to "--format" option). """ - from distutils.fancy_getopt import FancyGetopt + from distutils.fancy_getopt import FancyGetopt formats=[] for format in bdist.format_commands: formats.append(("formats=" + format, None, @@ -104,7 +104,7 @@ class bdist (Command): if self.dist_dir is None: self.dist_dir = "dist" - + # finalize_options() diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py index 150fdec..037ed9e 100644 --- a/Lib/distutils/command/bdist_rpm.py +++ b/Lib/distutils/command/bdist_rpm.py @@ -101,7 +101,7 @@ class bdist_rpm (Command): 'no-rpm-opt-flags': 'use-rpm-opt-flags', 'rpm2-mode': 'rpm3-mode'} - + def initialize_options (self): self.bdist_base = None self.rpm_base = None @@ -184,7 +184,7 @@ class bdist_rpm (Command): self.ensure_string('vendor', "%s <%s>" % (self.distribution.get_contact(), self.distribution.get_contact_email())) - self.ensure_string('packager') + self.ensure_string('packager') self.ensure_string_list('doc_files') if type(self.doc_files) is ListType: for readme in ('README', 'README.txt'): @@ -201,7 +201,7 @@ class bdist_rpm (Command): self.changelog = self._format_changelog(self.changelog) self.ensure_filename('icon') - + self.ensure_filename('prep_script') self.ensure_filename('build_script') self.ensure_filename('install_script') @@ -275,7 +275,7 @@ class bdist_rpm (Command): else: raise DistutilsFileError, \ "icon file '%s' does not exist" % self.icon - + # build package self.announce('building RPMs') @@ -368,17 +368,17 @@ class bdist_rpm (Command): spec_file.append('%s: %s' % (field, string.join(val))) elif val is not None: spec_file.append('%s: %s' % (field, val)) - - + + if self.distribution.get_url() != 'UNKNOWN': spec_file.append('Url: ' + self.distribution.get_url()) if self.distribution_name: - spec_file.append('Distribution: ' + self.distribution_name) + spec_file.append('Distribution: ' + self.distribution_name) if self.build_requires: - spec_file.append('BuildRequires: ' + - string.join(self.build_requires)) + spec_file.append('BuildRequires: ' + + string.join(self.build_requires)) if self.icon: spec_file.append('Icon: ' + os.path.basename(self.icon)) @@ -473,11 +473,11 @@ class bdist_rpm (Command): new_changelog.append(line) else: new_changelog.append(' ' + line) - + # strip trailing newline inserted by first changelog entry if not new_changelog[0]: del new_changelog[0] - + return new_changelog # _format_changelog() diff --git a/Lib/distutils/command/bdist_wininst.py b/Lib/distutils/command/bdist_wininst.py index 7cdf385..357ba51 100644 --- a/Lib/distutils/command/bdist_wininst.py +++ b/Lib/distutils/command/bdist_wininst.py @@ -196,7 +196,7 @@ class bdist_wininst (Command): file.write(self.get_exe_bytes()) if bitmap: file.write(bitmapdata) - + file.write(cfgdata) header = struct.pack("