summaryrefslogtreecommitdiff
path: root/distutils2/compiler/bcppcompiler.py
diff options
context:
space:
mode:
author?ric Araujo <merwok@netwok.org>2012-05-21 17:03:13 -0400
committer?ric Araujo <merwok@netwok.org>2012-05-21 17:03:13 -0400
commit7e12306509188e264a99b529d16cc5f80839b2f6 (patch)
tree2a8b797e061e4d2c26a5319d5f9d93895e3e569a /distutils2/compiler/bcppcompiler.py
parent273927821682f7abba2c961671e26d3274bb9b02 (diff)
parentee6fb9f7f0863a1d0020d57f224947f7b795df6d (diff)
downloaddisutils2-7e12306509188e264a99b529d16cc5f80839b2f6.tar.gz
Merge from default
Diffstat (limited to 'distutils2/compiler/bcppcompiler.py')
-rw-r--r--distutils2/compiler/bcppcompiler.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/distutils2/compiler/bcppcompiler.py b/distutils2/compiler/bcppcompiler.py
index 4591c68..0a6b9bf 100644
--- a/distutils2/compiler/bcppcompiler.py
+++ b/distutils2/compiler/bcppcompiler.py
@@ -104,7 +104,7 @@ class BCPPCompiler(CCompiler) :
# This needs to be compiled to a .res file -- do it now.
try:
self.spawn(["brcc32", "-fo", obj, src])
- except PackagingExecError, msg:
+ except PackagingExecError as msg:
raise CompileError(msg)
continue # the 'for' loop
@@ -128,7 +128,7 @@ class BCPPCompiler(CCompiler) :
self.spawn([self.cc] + compile_opts + pp_opts +
[input_opt, output_opt] +
extra_postargs + [src])
- except PackagingExecError, msg:
+ except PackagingExecError as msg:
raise CompileError(msg)
return objects
@@ -146,7 +146,7 @@ class BCPPCompiler(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)
@@ -268,7 +268,7 @@ class BCPPCompiler(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)
else:
@@ -351,5 +351,5 @@ class BCPPCompiler(CCompiler) :
self.mkpath(os.path.dirname(output_file))
try:
self.spawn(pp_args)
- except PackagingExecError, exc:
- raise CompileError(exc)
+ except PackagingExecError as msg:
+ raise CompileError(msg)