]> git.phdru.name Git - bookmarks_db.git/blobdiff - Robots/bkmk_robot_base.py
Rename urlretrieve to get
[bookmarks_db.git] / Robots / bkmk_robot_base.py
index 6226328388c78e75e4cedf90604760a84517be40..057fceff7d7370c1cff4a34957118f42ee955665 100644 (file)
@@ -61,7 +61,7 @@ class robot_base(Robot):
          url_path, url_tag  = urllib.splittag(url_path)
 
          url = "%s://%s%s" % (url_type, url_host, url_path)
-         headers, content, error = self.urlretrieve(bookmark, url, True)
+         headers, content, error = self.get(bookmark, url, True)
 
          if error:
              bookmark.error = error
@@ -145,7 +145,7 @@ class robot_base(Robot):
                         _icon_url = icon_url
                         for i in range(8):
                            try:
-                              icon_headers, icon_data, error = self.urlretrieve(bookmark, _icon_url)
+                              icon_headers, icon_data, error = self.get(bookmark, _icon_url)
                            except RedirectException, e:
                               _icon_url = e.url
                               self.log("   redirect to : %s" % _icon_url)