"""
Robot interface - check URLs from bookmarks database
- Written by BroytMann, Mar 2000 - Aug 2002. Copyright (C) 2000-2002 PhiloSoft Design
+ Written by BroytMann. Copyright (C) 2000-2007 PhiloSoft Design.
"""
-import sys, os, urllib, tempfile
+import sys, os, tempfile
tempfname = "check_urls" + tempfile.gettempprefix() + "tmp"
pass
if report_stats:
- print "BroytMann check_urls, Copyright (C) 1997-2002 PhiloSoft Design"
+ print "BroytMann check_urls, Copyright (C) 1997-2007 PhiloSoft Design"
if args:
sys.stderr.write("check_urls: too many arguments\n")
if hasattr(old_object, attr_name):
setattr(object, attr_name, getattr(old_object, attr_name))
else:
- url_type, url_rest = urllib.splittype(object.href)
- log("Checking %s:%s" % (url_type, url_rest))
- rcode = robot.check_url(object, url_type, url_rest)
+ log("Checking %s" % object.href)
+ rcode = robot.check_url(object)
if rcode:
checked[object.href] = object_no