]> git.phdru.name Git - bookmarks_db.git/blobdiff - Robots/bkmk_robot_base.py
Style: Fix flake8 E261 at least two spaces before inline comment
[bookmarks_db.git] / Robots / bkmk_robot_base.py
index 24bc4de92cf30cb8eb5709759e77a16a18706a67..9c9d8c5823543bc442472274068da5acbf8417b0 100644 (file)
@@ -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: