diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2022-09-02 13:25:04 -0700 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-09-19 20:57:52 -0400 |
commit | 4da14918cd7ad6566f2a986d2dd1aaa87bf66198 (patch) | |
tree | 0bfbad0067d9ac015bfe8adb833bfd9cb5a96ce1 /mesonbuild/backend/backends.py | |
parent | 6f7ea0cc28c9e777c57c74b4d7c2d13604e48ba6 (diff) | |
download | meson-4da14918cd7ad6566f2a986d2dd1aaa87bf66198.zip meson-4da14918cd7ad6566f2a986d2dd1aaa87bf66198.tar.gz meson-4da14918cd7ad6566f2a986d2dd1aaa87bf66198.tar.bz2 |
pylint: enable consider-using-in
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r-- | mesonbuild/backend/backends.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index 64c8fa1..53e3530 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -1550,7 +1550,7 @@ class Backend: outdirs, install_dir_names, custom_install_dir = t.get_install_dir() # Sanity-check the outputs and install_dirs num_outdirs, num_out = len(outdirs), len(t.get_outputs()) - if num_outdirs != 1 and num_outdirs != num_out: + if num_outdirs not in {1, num_out}: m = 'Target {!r} has {} outputs: {!r}, but only {} "install_dir"s were found.\n' \ "Pass 'false' for outputs that should not be installed and 'true' for\n" \ 'using the default installation directory for an output.' |