diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-07-28 17:49:19 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-07-28 17:49:19 +0200 |
commit | 8bf05589bba98a13dacce1312075af9f04145b82 (patch) | |
tree | 957f067b63d54740b9e9752d94ce3a7e19abe310 /giscanner/ccompiler.py | |
parent | a7dd50e4e3b8b65780cf3cb6282fb483f137e211 (diff) | |
download | gobject-introspection-8bf05589bba98a13dacce1312075af9f04145b82.tar.gz |
ccompiler: simplify check_is_msvc()
as was pointed out in !12
Diffstat (limited to 'giscanner/ccompiler.py')
-rw-r--r-- | giscanner/ccompiler.py | 5 |
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): |