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:
parent
15c304ad6c
commit
25e63c5a7c
3
.gitignore
vendored
3
.gitignore
vendored
@ -21,6 +21,9 @@
|
||||
# Binaries
|
||||
/pg_probackup
|
||||
|
||||
# Generated translated file
|
||||
/po/ru.mo
|
||||
|
||||
# Generated by test suite
|
||||
/regression.diffs
|
||||
/regression.out
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user