From: Oleg Broytman Date: Sun, 6 Jul 2014 01:11:24 +0000 (+0400) Subject: Don't use urllib._urlopener - it isn't available with urllib2 X-Git-Tag: v4.6.0~8 X-Git-Url: https://git.phdru.name/?p=bookmarks_db.git;a=commitdiff_plain;h=f8f173d1d78769a37a3a66c3b850cc9b244c77cb Don't use urllib._urlopener - it isn't available with urllib2 --- diff --git a/Robots/bkmk_robot_base.py b/Robots/bkmk_robot_base.py index 533238c..210d092 100644 --- a/Robots/bkmk_robot_base.py +++ b/Robots/bkmk_robot_base.py @@ -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)