summaryrefslogtreecommitdiffstats
path: root/TOOLS/dylib-unhell.py
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2024-02-21 22:25:11 +0100
committerder richter <der.richter@gmx.de>2024-02-24 20:04:16 +0100
commit948b0487f751d35f4d2d3cb3b47cf526390e61b1 (patch)
treedd7721227a884ee17fb53bf8df77f6ddb3ee7cfa /TOOLS/dylib-unhell.py
parent218d9e26d2d593f853a2a6d8199fbc3151d99f99 (diff)
downloadmpv-948b0487f751d35f4d2d3cb3b47cf526390e61b1.tar.bz2
mpv-948b0487f751d35f4d2d3cb3b47cf526390e61b1.tar.xz
osxbundle: fix syntax warning with python 3.12
Diffstat (limited to 'TOOLS/dylib-unhell.py')
-rwxr-xr-xTOOLS/dylib-unhell.py6
1 files 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():