From f4cb1181909f9279a51cbf1be363e676d3397b40 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 21 Mar 2015 00:49:38 +0300 Subject: [PATCH] modules/rpm: simplify isinstance check to oneline Signed-off-by: Igor Gnatenko --- modules/rpm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/rpm.py b/modules/rpm.py index 8e5f655ee..0408ac8d6 100644 --- a/modules/rpm.py +++ b/modules/rpm.py @@ -34,8 +34,7 @@ class RPMModule: compiler_deps.add('gcc-objc') elif compiler == compilers.GnuObjCPPCompiler: compiler_deps.add('gcc-objc++') - elif isinstance(compiler, compilers.GnuCCompiler) or \ - isinstance(compiler, compilers.GnuCPPCompiler): + elif isinstance(compiler, (compilers.GnuCCompiler, compilers.GnuCPPCompiler)): # Installed by default pass else: