From acc701373334d53eda5af6f9c2b34dac243a06a2 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 18 Dec 2011 17:35:19 +0000 Subject: [PATCH] Pretty-print last_modified. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@350 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- Writers/bkmk_wflad.py | 2 +- Writers/bkmk_wflad_err.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Writers/bkmk_wflad.py b/Writers/bkmk_wflad.py index a4e88fc..6b6d174 100644 --- a/Writers/bkmk_wflad.py +++ b/Writers/bkmk_wflad.py @@ -38,7 +38,7 @@ Folder: %s AddDate: %s Comment: %s LastModified: %s -""" % (level, f.name, strftime(f.add_date), f.comment, f.last_modified or '')) +""" % (level, f.name, strftime(f.add_date), f.comment, strftime(f.last_modified))) def bookmark(self, b, level): self.outfile.write(""" diff --git a/Writers/bkmk_wflad_err.py b/Writers/bkmk_wflad_err.py index 5370d1b..356a65e 100644 --- a/Writers/bkmk_wflad_err.py +++ b/Writers/bkmk_wflad_err.py @@ -17,10 +17,6 @@ import time from bkmk_wflad import writer_flad -def strftime(s): - return time.strftime("%a %d %b %Y %T", time.localtime(int(s))) - - class writer_flad_err(writer_flad): filename = "bookmarks_db.errors" -- 2.39.5