summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-07-28 17:49:19 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2018-07-28 17:49:19 +0200
commit8bf05589bba98a13dacce1312075af9f04145b82 (patch)
tree957f067b63d54740b9e9752d94ce3a7e19abe310
parenta7dd50e4e3b8b65780cf3cb6282fb483f137e211 (diff)
downloadgobject-introspection-8bf05589bba98a13dacce1312075af9f04145b82.tar.gz
ccompiler: simplify check_is_msvc()
as was pointed out in !12
-rw-r--r--giscanner/ccompiler.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py
index ecbeb684..b6b45e61 100644
--- a/giscanner/ccompiler.py
+++ b/giscanner/ccompiler.py
@@ -354,10 +354,7 @@ class CCompiler(object):
return shlibs
def check_is_msvc(self):
- if isinstance(self.compiler, MSVCCompiler):
- return True
- else:
- return False
+ return isinstance(self.compiler, MSVCCompiler)
# Private APIs
def _set_cpp_options(self, options):