aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/linkers/linkers.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/linkers/linkers.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/linkers/linkers.py')
-rw-r--r--mesonbuild/linkers/linkers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/linkers/linkers.py b/mesonbuild/linkers/linkers.py
index 30f41af..85fbcee 100644
--- a/mesonbuild/linkers/linkers.py
+++ b/mesonbuild/linkers/linkers.py
@@ -1475,7 +1475,7 @@ class CudaLinker(PosixDynamicLinkerMixin, DynamicLinker):
# Built on Sun_Sep_30_21:09:22_CDT_2018
# Cuda compilation tools, release 10.0, V10.0.166
# we need the most verbose version output. Luckily starting with V
- return out.strip().split('V')[-1]
+ return out.strip().rsplit('V', maxsplit=1)[-1]
def get_accepts_rsp(self) -> bool:
# nvcc does not support response files