Skip to content

Commit 0d45b45

Browse files
committed
Fix syntax warning
1 parent 9264f02 commit 0d45b45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitsandbytes/cextension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def get_cuda_bnb_library_path(cuda_specs: CUDASpecs) -> Path:
4545

4646
override_value = os.environ.get("BNB_CUDA_VERSION")
4747
if override_value:
48-
library_name = re.sub("cuda\d+", f"cuda{override_value}", library_name, count=1)
48+
library_name = re.sub(r"cuda\d+", f"cuda{override_value}", library_name, count=1)
4949
logger.warning(
5050
f"WARNING: BNB_CUDA_VERSION={override_value} environment variable detected; loading {library_name}.\n"
5151
"This can be used to load a bitsandbytes version that is different from the PyTorch CUDA version.\n"

0 commit comments

Comments
 (0)