From f8f173d1d78769a37a3a66c3b850cc9b244c77cb Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 6 Jul 2014 05:11:24 +0400 Subject: [PATCH] Don't use urllib._urlopener - it isn't available with urllib2 --- Robots/bkmk_robot_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5