From: Oleg Broytman Date: Wed, 7 Aug 2024 22:17:09 +0000 (+0300) Subject: Style(Writers/bkmk_wflad): Rename loop variables X-Git-Tag: 5.6.0~3 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=adea374fe02c710e9844f62814f53ca257a96d0b;p=bookmarks_db.git Style(Writers/bkmk_wflad): Rename loop variables --- 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))