mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-01-04 15:50:13 +01:00
Optimize code (tasks list initialization, task verification)
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
parent
8b6826d309
commit
d3068af2a8
|
|
@ -175,17 +175,15 @@ def main():
|
|||
|
||||
result = True
|
||||
|
||||
tasks = []
|
||||
if options.task == 'all':
|
||||
for task in TASKS:
|
||||
tasks.append(task)
|
||||
tasks = TASKS.keys()
|
||||
else:
|
||||
tasks = options.task.split(',')
|
||||
|
||||
for task in tasks:
|
||||
if task not in TASKS:
|
||||
print('Error: invalid task: {}'.format(task))
|
||||
sys.exit(1)
|
||||
for task in tasks:
|
||||
if task not in TASKS:
|
||||
print('Error: invalid task: {}'.format(task))
|
||||
sys.exit(1)
|
||||
|
||||
for task in TASKS:
|
||||
if task in tasks:
|
||||
|
|
|
|||
Loading…
Reference in a new issue