validate: launcher: Fix some pep8 issues

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3122>
This commit is contained in:
Thibault Saunier 2022-10-04 19:16:04 -03:00 committed by GStreamer Marge Bot
parent f9e6044124
commit fbddaffc62

View file

@ -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):