summaryrefslogtreecommitdiff
path: root/src/distutils2/compiler
diff options
context:
space:
mode:
author?ric Araujo <merwok@netwok.org>2010-06-26 01:43:30 +0200
committer?ric Araujo <merwok@netwok.org>2010-06-26 01:43:30 +0200
commitbdc0c044f10ee2d74581799c4f1aed4f89bdec47 (patch)
tree703ece9347374e9eacaa853f081556717275a5f6 /src/distutils2/compiler
parentac68a8c17be2d6c1db1ecdcf9b6e10d287ed1c76 (diff)
downloaddisutils2-bdc0c044f10ee2d74581799c4f1aed4f89bdec47.tar.gz
Make all classes new-style classes.
This will make 3.x migration easier (we will catch incompatibilities sooner thanks to python2.6 -3, e.g. the __hash__ deprecation warning), it allows us to use properties, super and other niceties, and new-style classes are instantiated faster.
Diffstat (limited to 'src/distutils2/compiler')
-rw-r--r--src/distutils2/compiler/ccompiler.py2
-rw-r--r--src/distutils2/compiler/msvc9compiler.py4
-rw-r--r--src/distutils2/compiler/msvccompiler.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/distutils2/compiler/ccompiler.py b/src/distutils2/compiler/ccompiler.py
index 025febd..5fdf0ee 100644
--- a/src/distutils2/compiler/ccompiler.py
+++ b/src/distutils2/compiler/ccompiler.py
@@ -76,7 +76,7 @@ def customize_compiler(compiler):
compiler.shared_lib_extension = so_ext
-class CCompiler:
+class CCompiler(object):
"""Abstract base class to define the interface that must be implemented
by real compiler classes. Also has some utility methods used by
several compiler classes.
diff --git a/src/distutils2/compiler/msvc9compiler.py b/src/distutils2/compiler/msvc9compiler.py
index 9f98d60..72cc0de 100644
--- a/src/distutils2/compiler/msvc9compiler.py
+++ b/src/distutils2/compiler/msvc9compiler.py
@@ -50,7 +50,7 @@ PLAT_TO_VCVARS = {
'win-ia64' : 'ia64',
}
-class Reg:
+class Reg(object):
"""Helper class to read values from the registry
"""
@@ -112,7 +112,7 @@ class Reg:
return s
convert_mbcs = staticmethod(convert_mbcs)
-class MacroExpander:
+class MacroExpander(object):
def __init__(self, version):
self.macros = {}
diff --git a/src/distutils2/compiler/msvccompiler.py b/src/distutils2/compiler/msvccompiler.py
index 46f8517..da5954c 100644
--- a/src/distutils2/compiler/msvccompiler.py
+++ b/src/distutils2/compiler/msvccompiler.py
@@ -104,7 +104,7 @@ def convert_mbcs(s):
pass
return s
-class MacroExpander:
+class MacroExpander(object):
def __init__(self, version):
self.macros = {}