diff options
author | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2015-03-26 18:53:46 +0300 |
---|---|---|
committer | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2015-03-26 18:54:37 +0300 |
commit | cb21489c60f4d0dc6030618205753dc10a074e2d (patch) | |
tree | 75f01745666ead3b5ff99c7daa9aabbe0bea0bf6 /modules | |
parent | 4e097ec7026886f09a97b26e3c7fb619fae120f9 (diff) | |
download | meson-cb21489c60f4d0dc6030618205753dc10a074e2d.zip meson-cb21489c60f4d0dc6030618205753dc10a074e2d.tar.gz meson-cb21489c60f4d0dc6030618205753dc10a074e2d.tar.bz2 |
modules/gnome: join 2 isinstance
to better code view
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gnome.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gnome.py b/modules/gnome.py index 458221e..efa7655 100644 --- a/modules/gnome.py +++ b/modules/gnome.py @@ -47,7 +47,7 @@ class GnomeModule: girtarget = args[0] while hasattr(girtarget, 'held_object'): girtarget = girtarget.held_object - if not (isinstance(girtarget, build.Executable) or isinstance(girtarget, build.SharedLibrary)): + if not isinstance(girtarget, (build.Executable, build.SharedLibrary)): raise MesonException('Gir target must be an executable or shared library') pkgstr = subprocess.check_output(['pkg-config', '--cflags', 'gobject-introspection-1.0']) pkgargs = pkgstr.decode().strip().split() |