"""
Check duplicate URLs in the bookmarks database
- Written by BroytMann, Jun 2000 - Aug 2002. Copyright (C) 2000-2002 PhiloSoft Design
+ Written by BroytMann. Copyright (C) 2000-2007 PhiloSoft Design
"""
-
import sys
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():
pass
if report_stats:
- print "BroytMann check_dups, Copyright (C) 2000 PhiloSoft Design"
+ print "BroytMann check_dups, Copyright (C) 2000-2007 PhiloSoft Design"
if args:
sys.stderr.write("check_urls: too many arguments\n")