X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Robots%2Fbkmk_robot_base.py;h=9c9d8c5823543bc442472274068da5acbf8417b0;hb=4255ead7de9ed5069f94b90cb134a077387d43c1;hp=24bc4de92cf30cb8eb5709759e77a16a18706a67;hpb=b2020f0b78d1a37dcda57c968bc81c357093359b;p=bookmarks_db.git diff --git a/Robots/bkmk_robot_base.py b/Robots/bkmk_robot_base.py index 24bc4de..9c9d8c5 100644 --- a/Robots/bkmk_robot_base.py +++ b/Robots/bkmk_robot_base.py @@ -64,7 +64,8 @@ class robot_base(Robot): url_type, url_rest = urllib.splittype(bookmark.href) url_host, url_path = urllib.splithost(url_rest) - url_path, url_tag = urllib.splittag(url_path) + url_path, url_tag = urllib.splittag(url_path) # noqa: E221 + # multiple spaces before operator url = "%s://%s%s" % (url_type, url_host, url_path) error, redirect_code, redirect_to, headers, content = self.get(bookmark, url, True) @@ -105,7 +106,7 @@ class robot_base(Robot): bookmark.last_modified = last_modified md5 = md5wrapper() - if url_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) @@ -199,7 +200,7 @@ class robot_base(Robot): try: timeout = int(refresh.split(';')[0]) except ValueError: - pass # float timeout + pass # float timeout self.set_redirect(bookmark, "html", "%s (%s sec)" % (url, timeout)) except KeyError as key: