]> git.phdru.name Git - bookmarks_db.git/blobdiff - Robots/bkmk_rsimple_tos.py
Split the title into subparts, reassemble the subparts and recode.
[bookmarks_db.git] / Robots / bkmk_rsimple_tos.py
index b7e89e8ca366168c13176803af2bc6efb1ce0ece..4d47073d5617f81e3dc668ef0298245ea869131a 100644 (file)
@@ -1,23 +1,21 @@
 """
-   Simple robot with timeoutsocket
+   Simple robot with socket's timeout
 
-   Written by BroytMann. Copyright (C) 2000-2003 PhiloSoft Design
+   Written by BroytMann. Copyright (C) 2000-2007 PhiloSoft Design
 """
 
-
-import socket, timeoutsocket
-timeoutsocket.setDefaultSocketTimeout(900)
+import socket
+socket.setdefaulttimeout(900)
 
 from bkmk_rsimple import robot_simple, get_error
 
+
 class robot_simple_tos(robot_simple):
    def check_url(self, bookmark):
       try:
          return robot_simple.check_url(self, bookmark)
-
-      except (socket.error, timeoutsocket.Timeout), msg:
+      except socket.error, msg:
          bookmark.error = get_error(msg)
 
       self.finish_check_url(bookmark)
-
       return 1