modules/rpm: simplify isinstance check to oneline

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
This commit is contained in:
Igor Gnatenko 2015-03-21 00:49:38 +03:00
parent 9d9f90f6ed
commit f4cb118190
1 changed files with 1 additions and 2 deletions

View File

@ -34,8 +34,7 @@ class RPMModule:
compiler_deps.add('gcc-objc') compiler_deps.add('gcc-objc')
elif compiler == compilers.GnuObjCPPCompiler: elif compiler == compilers.GnuObjCPPCompiler:
compiler_deps.add('gcc-objc++') compiler_deps.add('gcc-objc++')
elif isinstance(compiler, compilers.GnuCCompiler) or \ elif isinstance(compiler, (compilers.GnuCCompiler, compilers.GnuCPPCompiler)):
isinstance(compiler, compilers.GnuCPPCompiler):
# Installed by default # Installed by default
pass pass
else: else: