aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/cuda.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2019-12-04 15:24:54 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2019-12-05 00:22:10 +0200
commite6c15b27e6b9c3697d27d7297b4daaf994eaa2a6 (patch)
treee0df55dc1d8dbf6dae913fecc1869ffb2a946ae2 /mesonbuild/dependencies/cuda.py
parented9d125b9c8fe3a738545f7a1e9f9e70d6c32524 (diff)
downloadmeson-e6c15b27e6b9c3697d27d7297b4daaf994eaa2a6.zip
meson-e6c15b27e6b9c3697d27d7297b4daaf994eaa2a6.tar.gz
meson-e6c15b27e6b9c3697d27d7297b4daaf994eaa2a6.tar.bz2
lgtm: fix `Mismatch in multiple assignment` error
The old version is technically also correct, but this commit makes the intent more explicit (and schould make LGTM happy).
Diffstat (limited to 'mesonbuild/dependencies/cuda.py')
-rw-r--r--mesonbuild/dependencies/cuda.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/cuda.py b/mesonbuild/dependencies/cuda.py
index 67b361f..5f60a11 100644
--- a/mesonbuild/dependencies/cuda.py
+++ b/mesonbuild/dependencies/cuda.py
@@ -94,7 +94,7 @@ class CudaDependency(ExternalDependency):
defaults = [(path, version) for (path, version, default) in paths if default]
if defaults:
- return (*defaults[0], True)
+ return (defaults[0][0], defaults[0][1], True)
platform_msg = 'set the CUDA_PATH environment variable' if self._is_windows() \
else 'set the CUDA_PATH environment variable/create the \'/usr/local/cuda\' symbolic link'