search_privates.py: use new params command

This commit is contained in:
PabstMirror 2015-08-08 13:42:05 -05:00
parent 0719a3c1c6
commit 3664afcf90
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ def get_private_declare(content):
priv_split = sorted(set(priv_split)) priv_split = sorted(set(priv_split))
priv_declared += priv_split; priv_declared += priv_split;
srch = re.compile('PARAMS_[0-9].*|EXPLODE_[0-9]_PVT.*|DEFAULT_PARAM.*|KEY_PARAM.*|IGNORE_PRIVATE_WARNING.*') srch = re.compile('params \[.*\]|PARAMS_[0-9].*|EXPLODE_[0-9]_PVT.*|DEFAULT_PARAM.*|KEY_PARAM.*|IGNORE_PRIVATE_WARNING.*')
priv_srch_declared = srch.findall(content) priv_srch_declared = srch.findall(content)
priv_srch_declared = sorted(set(priv_srch_declared)) priv_srch_declared = sorted(set(priv_srch_declared))

View File

@ -21,7 +21,7 @@ def get_private_declare(content):
priv_split = sorted(set(priv_split)) priv_split = sorted(set(priv_split))
priv_declared += priv_split; priv_declared += priv_split;
srch = re.compile('PARAMS_[0-9].*|EXPLODE_[0-9]_PVT.*|DEFAULT_PARAM.*|KEY_PARAM.*|IGNORE_PRIVATE_WARNING.*') srch = re.compile('params \[.*\]|PARAMS_[0-9].*|EXPLODE_[0-9]_PVT.*|DEFAULT_PARAM.*|KEY_PARAM.*|IGNORE_PRIVATE_WARNING.*')
priv_srch_declared = srch.findall(content) priv_srch_declared = srch.findall(content)
priv_srch_declared = sorted(set(priv_srch_declared)) priv_srch_declared = sorted(set(priv_srch_declared))