You've already forked pg_probackup
							
							
				mirror of
				https://github.com/postgrespro/pg_probackup.git
				synced 2025-10-31 00:17:52 +02:00 
			
		
		
		
	raw strings in python regex; ignore generated transation files
Author: Sergey Fukanchik
This commit is contained in:
		
							
								
								
									
										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)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user