File: SyntaxWarning.patch

package info (click to toggle)
backupchecker 1.9-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 352 kB
  • sloc: python: 2,613; makefile: 15
file content (11 lines) | stat: -rw-r--r-- 454 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
--- 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)