aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/ninjabackend.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-09-02 11:49:37 -0700
committerEli Schwartz <eschwartz93@gmail.com>2022-09-19 20:57:52 -0400
commit188c552dcfe4aad30041263685eb421240a72e6f (patch)
tree17dd732b57d452cde8ea95119818c84fb9a9bd26 /mesonbuild/backend/ninjabackend.py
parentb11cf2f37165ddf0ebe737e85768483ff4387481 (diff)
downloadmeson-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/ninjabackend.py')
-rw-r--r--mesonbuild/backend/ninjabackend.py2
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