aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/boost/toolchain.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-05-06 23:11:52 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-05-06 23:11:52 +0300
commita7e06fc7e8a9aec2916f218027b8d572d8167099 (patch)
tree89cf67a923ec207a35ff063a8f529b9070e19c8c /project/boost/toolchain.py
parentproject.boost: merge BootstrapToolchain and Toolchain (diff)
downloadcmake-common-a7e06fc7e8a9aec2916f218027b8d572d8167099.tar.gz
cmake-common-a7e06fc7e8a9aec2916f218027b8d572d8167099.zip
fix PyLint warnings
Diffstat (limited to '')
-rw-r--r--project/boost/toolchain.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/project/boost/toolchain.py b/project/boost/toolchain.py
index 2ff409f..5fa2043 100644
--- a/project/boost/toolchain.py
+++ b/project/boost/toolchain.py
@@ -43,18 +43,17 @@ class Toolchain(abc.ABC):
def detect(hint):
if hint is ToolchainType.AUTO:
return Auto
- elif hint is ToolchainType.MSVC:
+ if hint is ToolchainType.MSVC:
return MSVC
- elif hint is ToolchainType.GCC:
+ if hint is ToolchainType.GCC:
return GCC
- elif hint is ToolchainType.MINGW:
+ if hint is ToolchainType.MINGW:
return MinGW
- elif hint is ToolchainType.CLANG:
+ if hint is ToolchainType.CLANG:
return Clang
- elif hint is ToolchainType.CLANG_CL:
+ if hint is ToolchainType.CLANG_CL:
return ClangCL
- else:
- raise NotImplementedError(f'unrecognized toolset: {hint}')
+ raise NotImplementedError(f'unrecognized toolset: {hint}')
@staticmethod
def make(hint, platform):
@@ -173,7 +172,7 @@ class GCC(Custom):
@staticmethod
def get_bootstrap_sh_args():
- return [f'--with-toolset=gcc']
+ return ['--with-toolset=gcc']
@staticmethod
def get_build_options():