From 8bf05589bba98a13dacce1312075af9f04145b82 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sat, 28 Jul 2018 17:49:19 +0200 Subject: ccompiler: simplify check_is_msvc() as was pointed out in !12 --- giscanner/ccompiler.py | 5 +---- 1 file changed, 1 insertion(+), 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): -- cgit v1.2.1