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))