Skip to content

Commit

Permalink
Fix E741 error in python bindings
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
  • Loading branch information
sgallagher committed May 20, 2020
1 parent db5ebc5 commit c7254db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bindings/python/gi/overrides/Modulemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ def variant_bool(b):
return GLib.Variant.new_boolean(b)

@staticmethod
def variant_list(l):
def variant_list(vl):
""" Converts a list to a GLib.Variant
"""

# If this is a zero-length array, handle it specially
if len(l) == 0:
if len(vl) == 0:
return GLib.Variant.new_array(GLib.VariantType("v"))

# Build the array from each entry
builder = GLib.VariantBuilder(GLib.VariantType("a*"))
for item in l:
for item in vl:
if item is None:
item = ""
builder.add_value(ModulemdUtil.python_to_variant(item))
Expand Down

0 comments on commit c7254db

Please sign in to comment.