]> git.phdru.name Git - bookmarks_db.git/blobdiff - Robots/bkmk_robot_base.py
Don't use urllib._urlopener - it isn't available with urllib2
[bookmarks_db.git] / Robots / bkmk_robot_base.py
index 80079b4d9006a45793d212b898b319c004a3a5c9..210d092b6509603c60832cc38b40cbfdcec058cc 100644 (file)
@@ -95,7 +95,7 @@ class robot_base(Robot):
          bookmark.last_modified = last_modified
 
          md5 = md5wrapper()
-         if urllib._urlopener.type == "ftp": # Pass welcome message through MD5
+         if url_type == "ftp": # Pass welcome message through MD5
             md5.update(self.get_ftp_welcome())
 
          md5.update(content)
@@ -222,8 +222,5 @@ class robot_base(Robot):
    def finish_check_url(self, bookmark):
       start = self.start
       bookmark.last_tested = str(start)
-
       now = int(time.time())
       bookmark.test_time = str(now - start)
-
-      self.cleanup()