summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--giscanner/msvccompiler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/msvccompiler.py b/giscanner/msvccompiler.py
index 63248093..d5785775 100644
--- a/giscanner/msvccompiler.py
+++ b/giscanner/msvccompiler.py
@@ -80,8 +80,8 @@ class MSVCCompiler(distutils.msvccompiler.MSVCCompiler):
if self.force or output_file is None or newer(source, output_file):
try:
self.spawn(cpp_args)
- except DistutilsExecError, msg:
- print msg
+ except (DistutilsExecError, msg):
+ print(msg)
raise CompileError
# The /P option for the MSVC preprocessor will output the results