]> git.phdru.name Git - bookmarks_db.git/blobdiff - bkmk-add.py
Robots no longer have one global temporary file - there are at least two
[bookmarks_db.git] / bkmk-add.py
index 46efe3e870ec0c33a395a73067a69b96478c96ea..7e7b415b469ddef45775fdcf0fb0f0a011b1ae5f 100755 (executable)
@@ -10,9 +10,6 @@ import sys, os, time
 from bkmk_objects import Bookmark
 from Robots.bkmk_rsimple import robot_simple
 
-import tempfile
-tempfname = "bkmk-add" + tempfile.gettempprefix() + "tmp"
-
 
 def run():
    from getopt import getopt
@@ -53,7 +50,7 @@ def run():
    bookmark = Bookmark(href, str(now), '0', '0')
    bookmark.name = ''
 
-   robot = robot_simple(tempfname, None)
+   robot = robot_simple(None)
 
    if robot.check_url(bookmark): # get real title and last modified date
       if title: # forced title
@@ -74,11 +71,5 @@ def run():
          print "Ok"
 
 
-   try:
-      os.unlink(tempfname)
-   except os.error:
-      pass
-
-
 if __name__ == '__main__':
    run()