diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2022-09-02 11:49:37 -0700 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-09-19 20:57:52 -0400 |
commit | 188c552dcfe4aad30041263685eb421240a72e6f (patch) | |
tree | 17dd732b57d452cde8ea95119818c84fb9a9bd26 /mesonbuild/backend | |
parent | b11cf2f37165ddf0ebe737e85768483ff4387481 (diff) | |
download | meson-188c552dcfe4aad30041263685eb421240a72e6f.zip meson-188c552dcfe4aad30041263685eb421240a72e6f.tar.gz meson-188c552dcfe4aad30041263685eb421240a72e6f.tar.bz2 |
pylint: enable use-maxsplit-arg
This finds a bunch of places where we can do more efficient string
splitting.
Diffstat (limited to 'mesonbuild/backend')
-rw-r--r-- | mesonbuild/backend/ninjabackend.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index 33f4970..91ecc20 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -3554,7 +3554,7 @@ def _scan_fortran_file_deps(src: Path, srcdir: Path, dirname: Path, tdeps, compi ancestor_child = '_'.join(parents) if ancestor_child not in tdeps: - raise MesonException("submodule {} relies on ancestor module {} that was not found.".format(submodmatch.group(2).lower(), ancestor_child.split('_')[0])) + raise MesonException("submodule {} relies on ancestor module {} that was not found.".format(submodmatch.group(2).lower(), ancestor_child.split('_', maxsplit=1)[0])) submodsrcfile = srcdir / tdeps[ancestor_child].fname # type: Path if not submodsrcfile.is_file(): if submodsrcfile.name != src.name: # generated source file |