]> git.phdru.name Git - bookmarks_db.git/commitdiff
Style: Fix flake8 E128 continuation line under-indented for visual indent
authorOleg Broytman <phd@phdru.name>
Sat, 2 Sep 2023 15:06:10 +0000 (18:06 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 12 Nov 2023 10:15:05 +0000 (13:15 +0300)
Robots/bkmk_rforking.py
Storage/bkmk_stflad.py
Writers/bkmk_wflad.py
bkmk_objects.py
bkmk_parser.py
check_urls.py

index cad8b2d0978e9ccb95c6560fa9164e047a991664..4d3e105a7a4063f7f5f5395d88d1ff18c1fa4601 100644 (file)
@@ -4,7 +4,7 @@ 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__ = ['robot_forking']
@@ -40,7 +40,7 @@ def restart_subp(log):
     stop_subp(log)
 
     check_subp = Subprocess("%s/Robots/bkmk_rforking_sub.py" % os.path.dirname(sys.argv[0]),
-       control_stderr=True)
+                            control_stderr=True)
     subp_pipe = RecordFile(check_subp)
 
 
@@ -73,10 +73,12 @@ class robot_forking(Robot):
 
             if check_subp.waitForPendingChar(60): # wait a minute
                 new_b = pickle.loads(subp_pipe.read_record())
-                for attr in ("error", "no_error",
-                      "moved", "size", "md5", "real_title",
-                      "last_tested", "last_modified", "test_time",
-                      "icon", "icon_href"):
+                for attr in (
+                    "error", "no_error",
+                    "moved", "size", "md5", "real_title",
+                    "last_tested", "last_modified", "test_time",
+                    "icon", "icon_href",
+                ):
                     if hasattr(new_b, attr):
                         setattr(bookmark, attr, getattr(new_b, attr))
             else:
index 56397727b9c8a4dbd4dab80feefecfd7f6bfcbf3..232229194a44aa8bbc8ddf1c552cf6626764504d 100644 (file)
@@ -113,9 +113,10 @@ Charset: %s
 
             if record.has_key("URL"):
                 comment = record["Comment"].replace("\\n", '\n')
-                bookmark = Bookmark(record["URL"], record["AddDate"],
-                   record["LastVisit"], record["LastModified"],
-                   record["Keyword"], comment)
+                bookmark = Bookmark(
+                    record["URL"], record["AddDate"],
+                    record["LastVisit"], record["LastModified"],
+                    record["Keyword"], comment)
                 bookmark.name = record["Title"]
                 self.current_folder.append(bookmark)
 
index 06c523b33034680c97b800c873443ebc7df04e4d..ad84a53ac0566054b0e2036495badf9bd42f8ae3 100644 (file)
@@ -4,7 +4,7 @@ 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__ = ['writer_flad']
@@ -48,10 +48,12 @@ LastModified: %s
 Keyword: %s
 Comment: %s""" % (level+1, b.name, b.href, strftime(b.add_date), strftime(b.last_visit), strftime(b.last_modified), b.keyword, b.comment))
 
-        for attr_name, attr_out in (("error", "Error"), ("no_error", "NoError"),
-              ("moved", "Moved"), ("size", "Size"), ("md5", "Md5"),
-              ("real_title", "RealTitle"), ("test_time", "TestTime"),
-              ("icon_href", "IconURI"), ("icon", "Icon"), ("charset", "Charset")):
+        for attr_name, attr_out in (
+            ("error", "Error"), ("no_error", "NoError"),
+            ("moved", "Moved"), ("size", "Size"), ("md5", "Md5"),
+            ("real_title", "RealTitle"), ("test_time", "TestTime"),
+            ("icon_href", "IconURI"), ("icon", "Icon"), ("charset", "Charset"),
+        ):
             if hasattr(b, attr_name):
                 value = getattr(b, attr_name)
                 if isinstance(value, unicode):
index 140cb981856bad7d3b3f9111ea68b5f4521a65b3..4031e5f60d8dfa0ac1379ce819f2962a202baa93 100644 (file)
@@ -9,8 +9,8 @@ __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',
     ]
 
 
@@ -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)
index 6a69433ddf9ca3286cd3410284435b199c73252c..329b4e52563aaf0edefed9bb84c8b139d166a2d4 100644 (file)
@@ -4,7 +4,7 @@ This file is a part of Bookmarks database and Internet robot.
 """
 
 __author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 1997-2017 PhiloSoft Design"
+__copyright__ = "Copyright (C) 1997-2023 PhiloSoft Design"
 __license__ = "GNU GPL"
 
 __all__ = ['BkmkParser']
@@ -149,8 +149,8 @@ class BkmkParser(HTMLParser):
 
         debug("Bookmark points to: `%s'" % href)
         bookmark = Bookmark(href, add_date, last_visit, last_modified,
-           keyword=keyword, icon=icon,
-           charset=charset, parser_charset=self.charset or default_encoding)
+                            keyword=keyword, icon=icon, charset=charset,
+                            parser_charset=self.charset or default_encoding)
         self.current_object = bookmark
         self.current_folder.append(bookmark)
         self.urls += 1
index ae7fe830475ac067a187a243124fe7065d2de213..000141ff0f65929fb525879e9c2f6ffcff46745d 100755 (executable)
@@ -121,9 +121,11 @@ def run():
             if checked.has_key(href):
                 log("Already checked %s" % href)
                 old_object = root_folder.linear[checked[href]]
-                for attr_name in ("last_visit", "last_modified",
-                      "error", "no_error", "moved", "size", "md5", "real_title",
-                      "last_tested", "test_time", "icon", "charset"):
+                for attr_name in (
+                    "last_visit", "last_modified",
+                    "error", "no_error", "moved", "size", "md5", "real_title",
+                    "last_tested", "test_time", "icon", "charset",
+                ):
                     if hasattr(old_object, attr_name):
                         setattr(object, attr_name, getattr(old_object, attr_name))
             else: