]> git.phdru.name Git - bookmarks_db.git/blobdiff - Robots/bkmk_rforking_sub.py
Robots no longer have one global temporary file - there are at least two
[bookmarks_db.git] / Robots / bkmk_rforking_sub.py
index 91460f3167f2c629fb6ea0fabaa936a3a1b97e5d..63464fccff91414dee6f01303516204852491e2f 100755 (executable)
@@ -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 Broytman. Copyright (C) 1999-2010 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
@@ -28,13 +28,12 @@ def run():
    from m_lib.flog import openlog
    log = openlog("check2.log")
    from bkmk_rsimple import robot_simple
-   robot = robot_simple(None, log)
+   robot = robot_simple(log)
 
    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()