1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-11-21 18:17:06 +02:00

raw strings in python regex; ignore generated transation files

Author: Sergey Fukanchik
This commit is contained in:
Yura Sokolov 2022-12-08 07:44:12 +03:00
parent 15c304ad6c
commit 25e63c5a7c
2 changed files with 5 additions and 2 deletions

3
.gitignore vendored
View File

@ -21,6 +21,9 @@
# Binaries
/pg_probackup
# Generated translated file
/po/ru.mo
# Generated by test suite
/regression.diffs
/regression.out

View File

@ -1685,7 +1685,7 @@ class ProbackupTest(object):
parts.append('0')
num = 0
for part in parts:
num = num * 100 + int(re.sub("[^\d]", "", part))
num = num * 100 + int(re.sub(r"[^\d]", "", part))
return num
def switch_wal_segment(self, node):
@ -2038,7 +2038,7 @@ class GDBobj:
# Get version
gdb_version_number = re.search(
b"^GNU gdb [^\d]*(\d+)\.(\d)",
br"^GNU gdb [^\d]*(\d+)\.(\d)",
gdb_version)
self.major_version = int(gdb_version_number.group(1))
self.minor_version = int(gdb_version_number.group(2))