Skip to content

Commit afc92fb

Browse files
Use match.groups()
1 parent 3252bf8 commit afc92fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rapids_build_backend/impls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _get_cuda_version(require_cuda=False):
6868
match = re.search(r"release (\d+)\.(\d+)", output_lines[3])
6969
if match is None:
7070
raise ValueError("Failed to parse CUDA version from nvcc output.")
71-
return match.group(1), match.group(2)
71+
return match.groups()
7272
except Exception:
7373
if not require_cuda:
7474
return None

0 commit comments

Comments
 (0)