From adea374fe02c710e9844f62814f53ca257a96d0b Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 8 Aug 2024 01:17:09 +0300 Subject: [PATCH] Style(Writers/bkmk_wflad): Rename loop variables --- Writers/bkmk_wflad.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Writers/bkmk_wflad.py b/Writers/bkmk_wflad.py index 3c3dd96..3b33de6 100644 --- a/Writers/bkmk_wflad.py +++ b/Writers/bkmk_wflad.py @@ -56,12 +56,12 @@ Comment: %s""" % ( b.keyword, b.comment) ) - for attr_name, attr_out in bkmk_attrs.items(): - if hasattr(b, attr_name): - value = getattr(b, attr_name) + for attr, title in bkmk_attrs.items(): + if hasattr(b, attr): + value = getattr(b, attr) #if isinstance(value, unicode): # value = value.encode('utf-8') - self.outfile.write("\n%s: %s" % (attr_out, value)) + self.outfile.write("\n%s: %s" % (title, value)) if hasattr(b, "last_tested"): self.outfile.write("\nLastTested: %s" % strftime(b.last_tested)) -- 2.39.5