diff options
Diffstat (limited to 'distutils2/compiler/bcppcompiler.py')
| -rw-r--r-- | distutils2/compiler/bcppcompiler.py | 12 |
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) |
