]> git.phdru.name Git - bookmarks_db.git/commitdiff
Fix simple robot with timeout
authorOleg Broytman <phd@phdru.name>
Sun, 22 Jun 2014 17:24:10 +0000 (21:24 +0400)
committerOleg Broytman <phd@phdru.name>
Sun, 22 Jun 2014 17:24:10 +0000 (21:24 +0400)
Rename simple_tos robot to urllib_to.

Robots/bkmk_rurllib_to.py [moved from Robots/bkmk_rsimple_tos.py with 59% similarity]

similarity index 59%
rename from Robots/bkmk_rsimple_tos.py
rename to Robots/bkmk_rurllib_to.py
index dec1680e72d1f9dd6ec7629119654818a1a93250..2726dbfc3df1d6d5c829e50a41dd780afd7e56c2 100644 (file)
@@ -1,28 +1,28 @@
 """Simple robot with socket's timeout
 
 This file is a part of Bookmarks database and Internet robot.
 """Simple robot with socket's timeout
 
 This file is a part of Bookmarks database and Internet robot.
+
 """
 
 __author__ = "Oleg Broytman <phd@phdru.name>"
 """
 
 __author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2000-2012 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2000-2014 PhiloSoft Design"
 __license__ = "GNU GPL"
 
 __license__ = "GNU GPL"
 
-__all__ = ['robot_simple_tos']
+__all__ = ['robot_urllib_to']
 
 
 import socket
 socket.setdefaulttimeout(900)
 
 
 
 import socket
 socket.setdefaulttimeout(900)
 
-from .bkmk_rsimple import robot_simple, get_error
+from .bkmk_rurllib import robot_urllib, get_error
 
 
 
 
-class robot_simple_tos(robot_simple):
+class robot_urllib_to(robot_urllib):
    def check_url(self, bookmark):
       try:
    def check_url(self, bookmark):
       try:
-         return robot_simple.check_url(self, bookmark)
+         return robot_urllib.check_url(self, bookmark)
       except socket.error, msg:
          bookmark.error = get_error(msg)
          self.log(bookmark.error)
 
       except socket.error, msg:
          bookmark.error = get_error(msg)
          self.log(bookmark.error)
 
-      self.finish_check_url(bookmark)
       return 1
       return 1