debian/patches/SyntaxWarning.patch
raw| 1 | --- a/backupchecker/placeholder.py |
| 2 | +++ b/backupchecker/placeholder.py |
| 3 | @@ -84,7 +84,7 @@ |
| 4 | __found = True |
| 5 | self.__path = '/'.join(__newpath) |
| 6 | __head, __tail = os.path.split(self.__path) |
| 7 | - __tail = __tail.replace('%i', "([\d]+)") |
| 8 | + __tail = __tail.replace('%i', r"([\d]+)") |
| 9 | for __file in os.listdir(__head): |
| 10 | if re.search(__tail, __file): |
| 11 | __res = re.search(__tail, __file) |