]> git.phdru.name Git - bookmarks_db.git/blobdiff - Writers/bkmk_wflad_err.py
Cleanup code: use 4 spaces
[bookmarks_db.git] / Writers / bkmk_wflad_err.py
index 4fb127f3856dd2a00b9eb8e3cb4e7f2034197adf..a48484c4aea599d835b012fdbd13c2cab73c950e 100644 (file)
@@ -1,21 +1,22 @@
-"""
-   Dump bookmarks db to a more readable FLAD after check_urls
+"""Dump bookmarks db to a more readable FLAD after check_urls
 
-   Written by Broytman, Oct 2000 - Aug 2004. Copyright (C) 2000-2004 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
 """
 
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2000-2017 PhiloSoft Design"
+__license__ = "GNU GPL"
 
-import time
-from bkmk_wflad import writer_flad
+__all__ = ['writer_flad_err']
 
 
-def strftime(s):
-   return time.strftime("%a %d %b %Y %T", time.localtime(int(s)))
+import time
+from bkmk_wflad import writer_flad
 
 
 class writer_flad_err(writer_flad):
-   filename = "bookmarks_db.errors"
+    filename = "bookmarks_db.errors"
 
-   def bookmark(self, b, level):
-      if hasattr(b, "error"):
-         writer_flad.bookmark(self, b, level)
+    def bookmark(self, b, level):
+        if hasattr(b, "error"):
+            writer_flad.bookmark(self, b, level)