modules/rpm: simplify isinstance check to oneline

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
pull/52/head
Igor Gnatenko 10 years ago
parent 9d9f90f6ed
commit f4cb118190
  1. 3
      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:

Loading…
Cancel
Save