/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Utilities/ReleaseScripts/python/cmsCodeRules/pathToRegEx.py
19 строк
463 B
Shahzad Malik Muzaffar
[CORE] [PY312] String formating to fix SyntaxWarning
23 сен 2024, 11:09
23 сен 2024, 11:09
2048ee5
Код
Авторство
О чём код?
# To change this template, choose Tools | Templates # and open the template in the editor. __author__="Aurelija" __date__ ="$2010-08-25 11.18.53$" def pathsToRegEx(Paths): paths = [] for path in Paths: path = pathToRegEx(path) paths.append(path) return paths def pathToRegEx(path): path = path.replace("\\", "\\\\") path = "\\A%s$" %path path = path.replace(".", "\\.") path = path.replace("*",".*") return path