]> git.phdru.name Git - bookmarks_db.git/commitdiff
Style(Writers/bkmk_wflad): Rename loop variables
authorOleg Broytman <phd@phdru.name>
Wed, 7 Aug 2024 22:17:09 +0000 (01:17 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 7 Aug 2024 22:17:09 +0000 (01:17 +0300)
Writers/bkmk_wflad.py

index 3c3dd9680e855d43f7a579e3515fb167217dd632..3b33de6bbebe5ce46a61ed0a679676894925f1e5 100644 (file)
@@ -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))