]> git.phdru.name Git - bookmarks_db.git/blobdiff - sort_db.py
TODO: Configuration file
[bookmarks_db.git] / sort_db.py
index 3e4399cd137d17ef795001d44aff75e2d3999d88..f53cdd4d71b57c20558859220721671e06dbd397 100755 (executable)
@@ -1,6 +1,5 @@
-#! /usr/local/bin/python -O
-"""
-   Sort bookmarks DB according to a rule:
+#! /usr/bin/env python
+"""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 <phd@phdru.name>"
+__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