diff options
author | Éric Araujo <merwok@netwok.org> | 2011-10-14 15:04:39 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-10-14 15:04:39 (GMT) |
commit | 8022314fc2e8d6a4133c761633ab4e22404319e8 (patch) | |
tree | d45bd35cbb6fa3a6c80beaa329af2c049e35b81a /Lib/packaging/compiler/cygwinccompiler.py | |
parent | d139b994266e0fcc90ac30b49dc9cc047c222961 (diff) | |
download | cpython-8022314fc2e8d6a4133c761633ab4e22404319e8.zip cpython-8022314fc2e8d6a4133c761633ab4e22404319e8.tar.gz cpython-8022314fc2e8d6a4133c761633ab4e22404319e8.tar.bz2 |
Cleanup in packaging: super considered super
Diffstat (limited to 'Lib/packaging/compiler/cygwinccompiler.py')
-rw-r--r-- | Lib/packaging/compiler/cygwinccompiler.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Lib/packaging/compiler/cygwinccompiler.py b/Lib/packaging/compiler/cygwinccompiler.py index 348dbe7..916a1cc 100644 --- a/Lib/packaging/compiler/cygwinccompiler.py +++ b/Lib/packaging/compiler/cygwinccompiler.py @@ -93,8 +93,7 @@ class CygwinCCompiler(UnixCCompiler): exe_extension = ".exe" def __init__(self, verbose=0, dry_run=False, force=False): - - UnixCCompiler.__init__(self, verbose, dry_run, force) + super(CygwinCCompiler, self).__init__(verbose, dry_run, force) status, details = check_config_h() logger.debug("Python's GCC status: %s (details: %s)", status, details) @@ -255,14 +254,14 @@ class CygwinCCompiler(UnixCCompiler): if ext not in (self.src_extensions + ['.rc','.res']): raise UnknownFileError("unknown file type '%s' (from '%s')" % (ext, src_name)) if strip_dir: - base = os.path.basename (base) + base = os.path.basename(base) if ext in ('.res', '.rc'): # these need to be compiled to object files - obj_names.append (os.path.join(output_dir, + obj_names.append(os.path.join(output_dir, base + ext + self.obj_extension)) else: - obj_names.append (os.path.join(output_dir, - base + self.obj_extension)) + obj_names.append(os.path.join(output_dir, + base + self.obj_extension)) return obj_names # the same as cygwin plus some additional parameters @@ -273,8 +272,7 @@ class Mingw32CCompiler(CygwinCCompiler): description = 'MinGW32 compiler' def __init__(self, verbose=0, dry_run=False, force=False): - - CygwinCCompiler.__init__ (self, verbose, dry_run, force) + super(Mingw32CCompiler, self).__init__(verbose, dry_run, force) # ld_version >= "2.13" support -shared so use it instead of # -mdll -static |