mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Ignore some string keys which are only fragments concatenated with other stuff
This commit is contained in:
parent
b53695af27
commit
70566b7022
1 changed files with 3 additions and 0 deletions
|
@ -49,6 +49,9 @@ def find_expected_string_keys():
|
|||
for python_file in glob.glob("data/hooks/diagnosis/*.py"):
|
||||
content = open(python_file).read()
|
||||
for m in p3.findall(content):
|
||||
if m.endswith("_"):
|
||||
# Ignore some name fragments which are actually concatenated with other stuff..
|
||||
continue
|
||||
yield m
|
||||
yield "diagnosis_description_" + os.path.basename(python_file)[:-3].split("-")[-1]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue