Skip to content

Commit

Permalink
Merge pull request #114 from imba-tjd/patch-1
Browse files Browse the repository at this point in the history
Use super()
  • Loading branch information
jaraco authored Jan 30, 2022
2 parents bb018f1 + 4d36a45 commit 4471eee
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion distutils/_msvccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class MSVCCompiler(CCompiler) :


def __init__(self, verbose=0, dry_run=0, force=0):
CCompiler.__init__ (self, verbose, dry_run, force)
super().__init__(verbose, dry_run, force)
# target platform (.plat_name is consistent with 'bdist')
self.plat_name = None
self.initialized = False
Expand Down
2 changes: 1 addition & 1 deletion distutils/bcppcompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__ (self,
dry_run=0,
force=0):

CCompiler.__init__ (self, verbose, dry_run, force)
super().__init__(verbose, dry_run, force)

# These executables are assumed to all be in the path.
# Borland doesn't seem to use any special registry settings to
Expand Down
2 changes: 1 addition & 1 deletion distutils/command/bdist_msi.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class PyDialog(Dialog):
def __init__(self, *args, **kw):
"""Dialog(database, name, x, y, w, h, attributes, title, first,
default, cancel, bitmap=true)"""
Dialog.__init__(self, *args)
super().__init__(*args)
ruler = self.h - 36
bmwidth = 152*ruler/328
#if kw.get("bitmap", True):
Expand Down
2 changes: 1 addition & 1 deletion distutils/command/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class SilentReporter(Reporter):
def __init__(self, source, report_level, halt_level, stream=None,
debug=0, encoding='ascii', error_handler='replace'):
self.messages = []
Reporter.__init__(self, source, report_level, halt_level, stream,
super().__init__(source, report_level, halt_level, stream,
debug, encoding, error_handler)

def system_message(self, level, message, *children, **kwargs):
Expand Down
4 changes: 2 additions & 2 deletions distutils/cygwinccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class CygwinCCompiler(UnixCCompiler):

def __init__(self, verbose=0, dry_run=0, force=0):

UnixCCompiler.__init__(self, verbose, dry_run, force)
super().__init__(verbose, dry_run, force)

status, details = check_config_h()
self.debug_print("Python's GCC status: %s (details: %s)" %
Expand Down Expand Up @@ -268,7 +268,7 @@ class Mingw32CCompiler(CygwinCCompiler):

def __init__(self, verbose=0, dry_run=0, force=0):

CygwinCCompiler.__init__ (self, verbose, dry_run, force)
super().__init__ (verbose, dry_run, force)

shared_option = "-shared"

Expand Down
2 changes: 1 addition & 1 deletion distutils/msvc9compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ class MSVCCompiler(CCompiler) :
exe_extension = '.exe'

def __init__(self, verbose=0, dry_run=0, force=0):
CCompiler.__init__ (self, verbose, dry_run, force)
super().__init__(verbose, dry_run, force)
self.__version = VERSION
self.__root = r"Software\Microsoft\VisualStudio"
# self.__macros = MACROS
Expand Down
2 changes: 1 addition & 1 deletion distutils/msvccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class MSVCCompiler(CCompiler) :
exe_extension = '.exe'

def __init__(self, verbose=0, dry_run=0, force=0):
CCompiler.__init__ (self, verbose, dry_run, force)
super().__init__(verbose, dry_run, force)
self.__version = get_build_version()
self.__arch = get_build_architecture()
if self.__arch == "Intel":
Expand Down
2 changes: 1 addition & 1 deletion distutils/tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def setUp(self):

class command(PyPIRCCommand):
def __init__(self, dist):
PyPIRCCommand.__init__(self, dist)
super().__init__(dist)
def initialize_options(self):
pass
finalize_options = initialize_options
Expand Down

0 comments on commit 4471eee

Please sign in to comment.