X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=check_dups.py;h=113e69ba61be9d3d1426038eb2b48c1616040240;hb=b8428744dea09ae6a9167eda3689e93cc335197c;hp=1a947dd5f7837bc903fa2d60b2527b493e481fab;hpb=fb5c3b2b91aeeb615d6d6d890491af3fdff69556;p=bookmarks_db.git diff --git a/check_dups.py b/check_dups.py index 1a947dd..113e69b 100755 --- a/check_dups.py +++ b/check_dups.py @@ -1,10 +1,15 @@ -#! /usr/local/bin/python -O -""" - Check duplicate URLs in the bookmarks database +#! /usr/bin/env python +"""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. """ +__version__ = "$Revision$"[11:-2] +__revision__ = "$Id$"[5:-2] +__date__ = "$Date$"[7:-2] +__author__ = "Oleg Broytman " +__copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design" +__license__ = "GNU GPL" import sys @@ -13,11 +18,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 +44,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")