]> git.phdru.name Git - bookmarks_db.git/commitdiff
Style: Fix flake8 E127 continuation line over-indented for visual indent
authorOleg Broytman <phd@phdru.name>
Sat, 2 Sep 2023 15:00:56 +0000 (18:00 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 12 Nov 2023 10:14:06 +0000 (13:14 +0300)
Robots/bkmk_robot_base.py
Storage/bkmk_stflad.py
check_urls.py

index 728fe46f557d6084e56ed5466f15769ef86401b8..e41dc408545eab72c1941ff735121ee6d43d3a0c 100644 (file)
@@ -5,7 +5,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_base', 'get_error']
@@ -172,12 +172,12 @@ class robot_base(Robot):
                             else:
                                 content_type = icon_headers["Content-Type"]
                                 if content_type.startswith("application/") \
-                                      or content_type.startswith("image/") \
-                                      or content_type.startswith("text/plain"):
+                                   or content_type.startswith("image/") \
+                                   or content_type.startswith("text/plain"):
                                     bookmark.icon_href = icon_url
                                     self.log("   got icon       : %s" % content_type)
                                     if content_type.startswith("application/") \
-                                          or content_type.startswith("text/plain"):
+                                       or content_type.startswith("text/plain"):
                                         self.log("   non-image content type, assume x-icon")
                                         content_type = 'image/x-icon'
                                     bookmark.icon = "data:%s;base64,%s" % (content_type, b64encode(icon_data))
index a60b30af872b215e62f7e80d151cdd672589ff66..56397727b9c8a4dbd4dab80feefecfd7f6bfcbf3 100644 (file)
@@ -6,7 +6,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__ = ['storage_flad']
@@ -55,8 +55,8 @@ IconURI: %s
 Icon: %s
 Charset: %s
 """ % (level+1, b.name, b.href, b.add_date, b.last_visit, b.last_modified,
-           b.keyword, b.comment.replace('\n', "\\n"),
-           b.icon_href or '', b.icon or '', b.charset or ''))
+            b.keyword, b.comment.replace('\n', "\\n"),
+            b.icon_href or '', b.icon or '', b.charset or ''))
 
     def ruler(self, r, level):
         self.outfile.write("\nLevel: %s\nRuler: YES\n" % (level+1))
index a7314f3b789ee120cfb9d239fd05d1e14d3268a5..ae7fe830475ac067a187a243124fe7065d2de213 100755 (executable)
@@ -9,7 +9,7 @@ import sys, os
 
 
 __author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2000-2017 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2000-2023 PhiloSoft Design"
 __license__ = "GNU GPL"
 
 
@@ -34,7 +34,7 @@ def run():
         pass
 
     if report_stats:
-        print("Broytman check_urls, Copyright (C) 1997-2017 PhiloSoft Design")
+        print("Broytman check_urls, Copyright (C) 1997-2023 PhiloSoft Design")
 
     if args:
         sys.stderr.write("check_urls: too many arguments\n")
@@ -108,7 +108,7 @@ def run():
         if object.isBookmark:
             href = object.href
             if (href.startswith('place:') # Firefox SmartBookmarks
-                  or '%s' in href): # Bookmark with keyword
+                    or '%s' in href): # Bookmark with keyword
                 log("Skipped %s" % href)
                 continue