X-Git-Url: https://git.phdru.name/?p=bookmarks_db.git;a=blobdiff_plain;f=check_dups.py;h=eebd09b20ac0c09691262cf032e804131c542c55;hp=5da790281bf445febd2bf6b4eb980423d43901d5;hb=96e39d55c791326368ff14d538850e14ba5a2c97;hpb=9edef5a570ea28f7c06d8d92fdd70afe0ea86809 diff --git a/check_dups.py b/check_dups.py index 5da7902..eebd09b 100755 --- a/check_dups.py +++ b/check_dups.py @@ -1,10 +1,12 @@ #! /usr/bin/env python -""" - Check duplicate URLs in the bookmarks database +"""Check duplicate URLs in the bookmarks database - Written by BroytMann, Jun 2000 - Aug 2002. Copyright (C) 2000-2002 PhiloSoft Design +This file is a part of Bookmarks database and Internet robot. """ +__author__ = "Oleg Broytman " +__copyright__ = "Copyright (C) 2000-2012 PhiloSoft Design" +__license__ = "GNU GPL" import sys @@ -13,11 +15,11 @@ log_file = None def report_dup(href, object_no): s = "Duplicate URL: %s (first at rec. %d)" % (href, object_no) - print s if log_file: log_file.write("%s\n" % s) - + else: + print s def run(): @@ -39,7 +41,7 @@ def run(): pass if report_stats: - print "BroytMann check_dups, Copyright (C) 2000 PhiloSoft Design" + print "Broytman check_dups, Copyright (C) 2000-2007 PhiloSoft Design" if args: sys.stderr.write("check_urls: too many arguments\n")