]> git.phdru.name Git - bookmarks_db.git/blobdiff - bkmk_objects.py
Style: Fix flake8 E261 at least two spaces before inline comment
[bookmarks_db.git] / bkmk_objects.py
index 6897721da802123064222a0ebac2c81b65081b14..f313bd377811d11c9675915f020a436235dee17a 100644 (file)
@@ -5,13 +5,13 @@ This file is a part of Bookmarks database and Internet robot.
 """
 
 __author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2000-2017 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2000-2023 PhiloSoft Design"
 __license__ = "GNU GPL"
 
 __all__ = ['Folder', 'Bookmark', 'Ruler', 'Walker', 'Writer', 'Robot',
-    'InverseLinker', 'Linear', 'make_linear', 'make_tree', 'break_tree',
-    'quote_title', 'unquote_title', 'parse_params', 'set_params',
-]
+           'InverseLinker', 'Linear', 'make_linear', 'make_tree', 'break_tree',
+           'quote_title', 'unquote_title', 'parse_params', 'set_params',
+           ]
 
 
 import os, urllib
@@ -29,7 +29,7 @@ class Folder(list):
         self.last_modified = last_modified
 
     def walk_depth(self, walker, level=0):
-        if hasattr(self, "header"): # root folder
+        if hasattr(self, "header"):  # root folder
             prune = 0
             walker.root_folder(self)
         else:
@@ -54,8 +54,8 @@ class Bookmark(object):
     isBookmark = 1
 
     def __init__(self, href, add_date, last_visit=None, last_modified=None,
-          keyword=None, comment='', icon_href=None, icon=None,
-          charset=None, parser_charset=None):
+                 keyword=None, comment='', icon_href=None, icon=None,
+                 charset=None, parser_charset=None):
         protocol, request = urllib.splittype(href)
         user, password, port = None, None, None
         host, path = urllib.splithost(request)
@@ -140,7 +140,7 @@ class Robot(object):
         self.log = log
 
     def stop(self):
-        pass # Nothing to do on cleanup
+        pass  # Nothing to do on cleanup
 
 
 # Helper class to make inverese links (nodes linked to their parent)
@@ -150,7 +150,7 @@ class InverseLinker(Walker):
 
     def start_folder(self, f, level):
         f.parent = self.parent_stack[-1]
-        self.parent_stack.append(f) # Push the folder onto the stack of parents
+        self.parent_stack.append(f)  # Push the folder onto the stack of parents
 
     def end_folder(self, f, level):
         del self.parent_stack[-1]   # Pop off the stack