From 948b0487f751d35f4d2d3cb3b47cf526390e61b1 Mon Sep 17 00:00:00 2001 From: der richter Date: Wed, 21 Feb 2024 22:25:11 +0100 Subject: [PATCH] osxbundle: fix syntax warning with python 3.12 --- TOOLS/dylib-unhell.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TOOLS/dylib-unhell.py b/TOOLS/dylib-unhell.py index e90438be84..3d6e7ecae0 100755 --- a/TOOLS/dylib-unhell.py +++ b/TOOLS/dylib-unhell.py @@ -43,7 +43,7 @@ def otool(objfile, rapths): def get_rapths(objfile): rpaths = [] command = "otool -l '%s' | grep -A2 LC_RPATH | grep path" % objfile - pathRe = re.compile("^\s*path (.*) \(offset \d*\)$") + pathRe = re.compile(r"^\s*path (.*) \(offset \d*\)$") try: result = subprocess.check_output(command, shell = True, universal_newlines=True) @@ -56,9 +56,9 @@ def get_rapths(objfile): return rpaths def get_rpaths_dev_tools(binary): - command = "otool -l '%s' | grep -A2 LC_RPATH | grep path | grep \"Xcode\|CommandLineTools\"" % binary + command = "otool -l '%s' | grep -A2 LC_RPATH | grep path | grep \"Xcode\\|CommandLineTools\"" % binary result = subprocess.check_output(command, shell = True, universal_newlines=True) - pathRe = re.compile("^\s*path (.*) \(offset \d*\)$") + pathRe = re.compile(r"^\s*path (.*) \(offset \d*\)$") output = [] for line in result.splitlines():