diff options
author | L. E. Segovia <amy@amyspark.me> | 2022-12-06 20:29:27 +0000 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2022-12-07 13:29:04 -0500 |
commit | d490636328e78984af0b80c70a8217c4f9cf9c52 (patch) | |
tree | 89d40cf1b37054febb46474ff9ceba2f183fdb44 /mesonbuild/utils/universal.py | |
parent | 35599c536271c2d05c82b0f649ad1ab2f2d351d1 (diff) | |
download | meson-d490636328e78984af0b80c70a8217c4f9cf9c52.zip meson-d490636328e78984af0b80c70a8217c4f9cf9c52.tar.gz meson-d490636328e78984af0b80c70a8217c4f9cf9c52.tar.bz2 |
utils: Fix pylint warning using-constant-test
Diffstat (limited to 'mesonbuild/utils/universal.py')
-rw-r--r-- | mesonbuild/utils/universal.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/utils/universal.py b/mesonbuild/utils/universal.py index 33c81c6..68ea0b7 100644 --- a/mesonbuild/utils/universal.py +++ b/mesonbuild/utils/universal.py @@ -1446,7 +1446,7 @@ def Popen_safe_legacy(args: T.List[str], write: T.Optional[str] = None, input_ = write.encode('utf-8') o, e = p.communicate(input_) if o is not None: - if sys.stdout.encoding: + if sys.stdout.encoding is not None: o = o.decode(encoding=sys.stdout.encoding, errors='replace').replace('\r\n', '\n') else: o = o.decode(errors='replace').replace('\r\n', '\n') |