]> git.phdru.name Git - bookmarks_db.git/commitdiff
Don't use urllib._urlopener - it isn't available with urllib2
authorOleg Broytman <phd@phdru.name>
Sun, 6 Jul 2014 01:11:24 +0000 (05:11 +0400)
committerOleg Broytman <phd@phdru.name>
Sun, 6 Jul 2014 01:11:24 +0000 (05:11 +0400)
Robots/bkmk_robot_base.py

index 533238cfe228a01e4842d34415d4376f1ee9d915..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)