There was an error while loading. Please reload this page.
1 parent db5ebc5 commit c7254dbCopy full SHA for c7254db
1 file changed
bindings/python/gi/overrides/Modulemd.py
@@ -45,17 +45,17 @@ def variant_bool(b):
45
return GLib.Variant.new_boolean(b)
46
47
@staticmethod
48
- def variant_list(l):
+ def variant_list(vl):
49
""" Converts a list to a GLib.Variant
50
"""
51
52
# If this is a zero-length array, handle it specially
53
- if len(l) == 0:
+ if len(vl) == 0:
54
return GLib.Variant.new_array(GLib.VariantType("v"))
55
56
# Build the array from each entry
57
builder = GLib.VariantBuilder(GLib.VariantType("a*"))
58
- for item in l:
+ for item in vl:
59
if item is None:
60
item = ""
61
builder.add_value(ModulemdUtil.python_to_variant(item))
0 commit comments