Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Commit 2d1c071

Browse files
authored
PR #1835: fix bad escape sequences
1 parent 0ff0c5c commit 2d1c071

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/build_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ def configure(self):
907907
i += 1
908908
text = "\n".join(lines)
909909
text = re.sub(r"^(D|M [0-7]+ [0-9a-f]+) \.(git|weirdal_)ignore$",
910-
"#\g<0>", text, flags=re.MULTILINE)
910+
r"#\g<0>", text, flags=re.MULTILINE)
911911
#fs.Path("/tmp/new").file_write(text)
912912
self.git(["fast-import", "--force"], input=text)
913913
self.git(["reflog", "expire", "--all", "--expire=now"])

lib/force.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
"match": ("/etc/redhat-release", r"release 7\."),
185185
"init": [ ("command -v fakeroot > /dev/null",
186186
"set -e; "
187-
"if ! grep -Eq '\[epel\]' /etc/yum.conf /etc/yum.repos.d/*; then "
187+
r"if ! grep -Eq '\[epel\]' /etc/yum.conf /etc/yum.repos.d/*; then "
188188
"yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm; "
189189
"yum install -y fakeroot; "
190190
"yum remove -y epel-release; "
@@ -199,7 +199,7 @@
199199
"match": ("/etc/redhat-release", r"release (?![0-7]\.)"),
200200
"init": [ ("command -v fakeroot > /dev/null",
201201
"set -e; "
202-
"if ! grep -Eq '\[epel\]' /etc/yum.conf /etc/yum.repos.d/*; then "
202+
r"if ! grep -Eq '\[epel\]' /etc/yum.conf /etc/yum.repos.d/*; then "
203203
# Macro %rhel from *-release* RPM, e.g. redhat-release-server
204204
# or centos-linux-release; thus reliable.
205205
"dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E %rhel).noarch.rpm; "

0 commit comments

Comments
 (0)