diff options
Diffstat (limited to 'scripts/Util.py')
-rw-r--r-- | scripts/Util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/Util.py b/scripts/Util.py index 0af3ee081d8..1801fd692e7 100644 --- a/scripts/Util.py +++ b/scripts/Util.py @@ -243,7 +243,7 @@ class Platform(object): def hasSwift(self, version): if self._hasSwift is None: try: - m = re.search("Apple Swift version ([0-9]+\.[0-9]+)", run("swift --version")) + m = re.search(r"Apple Swift version ([0-9]+\.[0-9]+)", run("swift --version")) if m and m.group(1): self._hasSwift = tuple([int(n) for n in m.group(1).split(".")]) >= version else: @@ -3842,7 +3842,7 @@ class SwiftMapping(Mapping): "macOS", current.config.buildConfig) - targetBuildDir = re.search("\sTARGET_BUILD_DIR = (.*)", run(cmd)).groups(1)[0] + targetBuildDir = re.search(r"\sTARGET_BUILD_DIR = (.*)", run(cmd)).groups(1)[0] testDriver = os.path.join(targetBuildDir, "TestDriver.app/Contents/MacOS/TestDriver") if not os.path.exists(testDriver): |