X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=sort_db.py;h=f53cdd4d71b57c20558859220721671e06dbd397;hb=cbf4c2c1db0af3829e015d895eb4ae02ecb8fc8e;hp=056c619a7d4a6bfd870dc25185d67fffff9ab586;hpb=9edef5a570ea28f7c06d8d92fdd70afe0ea86809;p=bookmarks_db.git diff --git a/sort_db.py b/sort_db.py index 056c619..f53cdd4 100755 --- a/sort_db.py +++ b/sort_db.py @@ -1,6 +1,5 @@ #! /usr/bin/env python -""" - Sort bookmarks DB according to a rule: +"""Sort bookmarks DB according to a rule: -a - by AddDate -v - by LastVisit -m - by LastModified @@ -9,14 +8,18 @@ default is -m -r - reverse the sort order - Written by BroytMann, Apr 2000. Copyright (C) 2000 PhiloSoft Design +This file is a part of Bookmarks database and Internet robot. + """ +__author__ = "Oleg Broytman " +__copyright__ = "Copyright (C) 2000-2014 PhiloSoft Design" +__license__ = "GNU GPL" import sys -class SortBy: +class SortBy(object): def __init__(self, sort_by): self.sort_by = sort_by