diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-08-31 09:41:56 -0700 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2021-08-31 16:28:54 -0400 |
commit | 06fdb29daace9ebe55e5df5336f65cba304773d2 (patch) | |
tree | 1c67697fbd56686348e2096cb3b2e019a7c38892 /mesonbuild/mdist.py | |
parent | 278942a44703aff6b643426b09a9012460719622 (diff) | |
download | meson-06fdb29daace9ebe55e5df5336f65cba304773d2.zip meson-06fdb29daace9ebe55e5df5336f65cba304773d2.tar.gz meson-06fdb29daace9ebe55e5df5336f65cba304773d2.tar.bz2 |
pylint: turn on superfluous parens warning
Which is really useful for catching parens used with keywords like
assert. Don't use parens with assert, it's bad.
Diffstat (limited to 'mesonbuild/mdist.py')
-rw-r--r-- | mesonbuild/mdist.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/mdist.py b/mesonbuild/mdist.py index afa1b4c..f1040e9 100644 --- a/mesonbuild/mdist.py +++ b/mesonbuild/mdist.py @@ -83,7 +83,7 @@ def process_submodules(dirname): def run_dist_scripts(src_root, bld_root, dist_root, dist_scripts, subprojects): - assert(os.path.isabs(dist_root)) + assert os.path.isabs(dist_root) env = {} env['MESON_DIST_ROOT'] = dist_root env['MESON_SOURCE_ROOT'] = src_root @@ -243,7 +243,7 @@ def check_dist(packagename, meson_command, extra_meson_args, bld_root, privdir): ninja_args = detect_ninja() shutil.unpack_archive(packagename, unpackdir) unpacked_files = glob(os.path.join(unpackdir, '*')) - assert(len(unpacked_files) == 1) + assert len(unpacked_files) == 1 unpacked_src_dir = unpacked_files[0] with open(os.path.join(bld_root, 'meson-info', 'intro-buildoptions.json'), encoding='utf-8') as boptions: meson_command += ['-D{name}={value}'.format(**o) for o in json.load(boptions) |