From 3ed23c42c093dc3b0f5031cc6a659b10c2a1c704 Mon Sep 17 00:00:00 2001 From: zzjjbb <31069326+zzjjbb@users.noreply.github.com> Date: Wed, 4 Sep 2024 12:57:32 -0500 Subject: [PATCH] Fix: should use raw string in regex expr --- skcuda/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skcuda/utils.py b/skcuda/utils.py index 0b5fe1c..d9e5d72 100644 --- a/skcuda/utils.py +++ b/skcuda/utils.py @@ -55,9 +55,9 @@ def get_soname(filename): raise RuntimeError('error executing {0}'.format(cmds)) if sys.platform == 'darwin': - result = re.search('^\s@rpath/(lib.+.dylib)', out, re.MULTILINE) + result = re.search(r'^\s@rpath/(lib.+.dylib)', out, re.MULTILINE) else: - result = re.search('^\s+SONAME\s+(.+)$',out,re.MULTILINE) + result = re.search(r'^\s+SONAME\s+(.+)$',out,re.MULTILINE) if result: return result.group(1)