mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
search_privates.py: use new params command
This commit is contained in:
parent
0719a3c1c6
commit
3664afcf90
@ -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))
|
||||||
|
|
||||||
|
@ -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))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user