summaryrefslogtreecommitdiff
path: root/giscanner/msvccompiler.py
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2015-10-28 16:10:24 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2015-10-28 22:05:17 +0800
commitf12d853b98b638b1a65cd27eddf2fb06e6540249 (patch)
tree027b5c7160c296edd5166e9dfbc36b362a897a34 /giscanner/msvccompiler.py
parent6492ac6386d90fd840722e00c0eef9e24e09f9c2 (diff)
downloadgobject-introspection-f12d853b98b638b1a65cd27eddf2fb06e6540249.tar.gz
giscanner/msvccompiler.py: Make it compatible with Python 3.x
This is checked for Python 2.7.x compatibility as well. https://bugzilla.gnome.org/show_bug.cgi?id=757126
Diffstat (limited to 'giscanner/msvccompiler.py')
-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