mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
genisolist: use raw string in regex
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
This commit is contained in:
parent
9c242560da
commit
6e03bff2a0
|
|
@ -184,7 +184,7 @@ def parseSection(items, rsync=False):
|
|||
# find last non-wildcard path
|
||||
non_regex = []
|
||||
for dir in location.split("/"):
|
||||
if re.search("[\?\*\[\]]", dir):
|
||||
if re.search(r"[\?\*\[\]]", dir):
|
||||
break
|
||||
non_regex.append(dir)
|
||||
prefix = "/".join(non_regex + [""])
|
||||
|
|
@ -286,7 +286,7 @@ def getImageList():
|
|||
|
||||
prior = {}
|
||||
for (name, value) in ini.items("%main%"):
|
||||
if re.match("d\d+$", name):
|
||||
if re.match(r"d\d+$", name):
|
||||
prior[value] = int(name[1:])
|
||||
|
||||
url_dict = {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue