summaryrefslogtreecommitdiff
path: root/distutils2/compiler/msvc9compiler.py
diff options
context:
space:
mode:
Diffstat (limited to 'distutils2/compiler/msvc9compiler.py')
-rw-r--r--distutils2/compiler/msvc9compiler.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/distutils2/compiler/msvc9compiler.py b/distutils2/compiler/msvc9compiler.py
index a7a524e..fb53d7d 100644
--- a/distutils2/compiler/msvc9compiler.py
+++ b/distutils2/compiler/msvc9compiler.py
@@ -46,7 +46,7 @@ PLAT_TO_VCVARS = {
}
-class Reg(object):
+class Reg:
"""Helper class to read values from the registry
"""
@@ -108,7 +108,7 @@ class Reg(object):
return s
convert_mbcs = staticmethod(convert_mbcs)
-class MacroExpander(object):
+class MacroExpander:
def __init__(self, version):
self.macros = {}
@@ -477,7 +477,7 @@ class MSVCCompiler(CCompiler) :
try:
self.spawn([self.rc] + pp_opts +
[output_opt] + [input_opt])
- except PackagingExecError, msg:
+ except PackagingExecError as msg:
raise CompileError(msg)
continue
elif ext in self._mc_extensions:
@@ -504,7 +504,7 @@ class MSVCCompiler(CCompiler) :
self.spawn([self.rc] +
["/fo" + obj] + [rc_file])
- except PackagingExecError, msg:
+ except PackagingExecError as msg:
raise CompileError(msg)
continue
else:
@@ -517,7 +517,7 @@ class MSVCCompiler(CCompiler) :
self.spawn([self.cc] + compile_opts + pp_opts +
[input_opt, output_opt] +
extra_postargs)
- except PackagingExecError, msg:
+ except PackagingExecError as msg:
raise CompileError(msg)
return objects
@@ -542,7 +542,7 @@ class MSVCCompiler(CCompiler) :
pass # XXX what goes here?
try:
self.spawn([self.lib] + lib_args)
- except PackagingExecError, msg:
+ except PackagingExecError as msg:
raise LibError(msg)
else:
logger.debug("skipping %s (up-to-date)", output_filename)
@@ -620,7 +620,7 @@ class MSVCCompiler(CCompiler) :
self.mkpath(os.path.dirname(output_filename))
try:
self.spawn([self.linker] + ld_args)
- except PackagingExecError, msg:
+ except PackagingExecError as msg:
raise LinkError(msg)
# embed the manifest
@@ -637,7 +637,7 @@ class MSVCCompiler(CCompiler) :
try:
self.spawn(['mt.exe', '-nologo', '-manifest',
temp_manifest, out_arg])
- except PackagingExecError, msg:
+ except PackagingExecError as msg:
raise LinkError(msg)
else:
logger.debug("skipping %s (up-to-date)", output_filename)