mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
validate: launcher: Fix some pep8 issues
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3122>
This commit is contained in:
parent
f9e6044124
commit
fbddaffc62
1 changed files with 6 additions and 6 deletions
|
@ -66,16 +66,16 @@ GST_VALIDATE_CAPS_TO_PROTOCOL = [("application/x-hls", Protocols.HLS),
|
|||
("application/dash+xml", Protocols.DASH)]
|
||||
|
||||
|
||||
def expand_vars_in_list_recurse(l, data):
|
||||
for i, v in enumerate(l):
|
||||
def expand_vars_in_list_recurse(lines, data):
|
||||
for i, v in enumerate(lines):
|
||||
if isinstance(v, dict):
|
||||
l[i] = expand_vars_in_dict_recurse(v, data)
|
||||
lines[i] = expand_vars_in_dict_recurse(v, data)
|
||||
elif isinstance(v, str):
|
||||
l[i] = v % data
|
||||
lines[i] = v % data
|
||||
elif isinstance(v, list):
|
||||
l[i] = expand_vars_in_list_recurse(v, data)
|
||||
lines[i] = expand_vars_in_list_recurse(v, data)
|
||||
|
||||
return l
|
||||
return lines
|
||||
|
||||
|
||||
def expand_vars_in_dict_recurse(dico, data):
|
||||
|
|
Loading…
Reference in a new issue