Skip to content

Commit 3f285e7

Browse files
committed
Use a raw string as argument to re.compile()
* tools/server-side/svn-backup-dumps.py (get_last_dumped_rev): As above Patch by: koumotoyouichi@gmail.com dev@: https://lists.apache.org/thread/owpvst9pw7sg5rq79snnxxkpcxn0w6k2 git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1931849 13f79535-47bb-0310-9956-ffa450edef68
1 parent d8c1ba7 commit 3f285e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/server-side/svn-backup-dumps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
# - improve documentation
150150
#
151151

152-
__version = "0.6"
152+
__version = "0.7"
153153

154154
import sys
155155
import os
@@ -452,7 +452,7 @@ def get_head_rev(self):
452452
return -1
453453

454454
def get_last_dumped_rev(self):
455-
filename_regex = re.compile("(.+)\.\d+-(\d+)\.svndmp.*")
455+
filename_regex = re.compile(r"(.+)\.\d+-(\d+)\.svndmp.*")
456456
# start with -1 so the next one will be rev 0
457457
highest_rev = -1
458458

0 commit comments

Comments
 (0)