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)
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)
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: