X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Robots%2Fbkmk_rforking_sub.py;h=6ae0d8c521ed50e35b61387a9e2413af0b3e05d6;hb=ea4316e0c474e17787d3a50fffb1d299e8604cc4;hp=91460f3167f2c629fb6ea0fabaa936a3a1b97e5d;hpb=9edef5a570ea28f7c06d8d92fdd70afe0ea86809;p=bookmarks_db.git diff --git a/Robots/bkmk_rforking_sub.py b/Robots/bkmk_rforking_sub.py index 91460f3..6ae0d8c 100755 --- a/Robots/bkmk_rforking_sub.py +++ b/Robots/bkmk_rforking_sub.py @@ -1,12 +1,12 @@ #! /usr/bin/env python """ - Check URL - subprocess + Check URL - subprocess for the forking robot - Written by BroytMann, Mar 1999 - Aug 2002. Copyright (C) 1999-2002 PhiloSoft Design + Written by BroytMann. Copyright (C) 1999-2007 PhiloSoft Design. """ -import sys, os, urllib +import sys, os lib_dir = os.path.normpath(os.path.dirname(sys.argv[0]) + os.sep + os.pardir) sys.path.append(lib_dir) # for bkmk_objects.py @@ -33,8 +33,7 @@ def run(): while 1: bookmark = pickle.loads(bkmk_in.read_record()) log(bookmark.href) - url_type, url_rest = urllib.splittype(bookmark.href) - robot.check_url(bookmark, url_type, url_rest) + robot.check_url(bookmark) bkmk_out.write_record(pickle.dumps(bookmark)) log.outfile.flush()