--- a/backupchecker/placeholder.py +++ b/backupchecker/placeholder.py @@ -84,7 +84,7 @@ __found = True self.__path = '/'.join(__newpath) __head, __tail = os.path.split(self.__path) - __tail = __tail.replace('%i', "([\d]+)") + __tail = __tail.replace('%i', r"([\d]+)") for __file in os.listdir(__head): if re.search(__tail, __file): __res = re.search(__tail, __file)