]> git.phdru.name Git - bookmarks_db.git/commitdiff
Style: Fix flake8 E303 too many blank lines
authorOleg Broytman <phd@phdru.name>
Mon, 4 Sep 2023 16:59:18 +0000 (19:59 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 12 Nov 2023 10:21:24 +0000 (13:21 +0300)
bkmk2db.py
check_dups.py
check_title.py
db2bkmk.py
set-real_title.py
set-title-list.py

index 58031c0531be145917168cf3f1939230700d4165..483c0a5be0d9dd4008efa01949e3e3e9f9067a2b 100755 (executable)
@@ -42,7 +42,6 @@ def run():
     else:
         filename = 'bookmarks.html'  # good name both for DOS (bookmark.htm) and UNIX
 
-
     if report_stats:
         from storage import storage_name
         sys.stdout.write("Converting %s to %s: " % (filename, storage_name))
@@ -64,7 +63,6 @@ def run():
             print(filename, ": no such file")
             sys.exit(1)
 
-
     if show_pbar:
         pbar = ttyProgressBar(0, size)
         lng = 0
@@ -75,7 +73,6 @@ def run():
         else:
             dos_add = 0  # UNIX' and Mac's len() counts CR or LF correct
 
-
     infile = open(filename, 'r')
     parser = BkmkParser()
 
index 94ae3f0a51731ad42c771db98bbaf137b69f9e61..7fca79a08f009e8fb476afad24e05fd2360e149c 100755 (executable)
@@ -69,7 +69,6 @@ def run():
     if report_stats:
         print("Ok")
 
-
     dup_dict = {}
 
     for object_no in range(objects):
@@ -82,7 +81,6 @@ def run():
             else:
                 dup_dict[href] = object_no
 
-
     if log_filename:
         log_file.close()
 
index 775679b227ada7d4bdfe0d7e32ab700e91f63630..870d968f785e8dc55429e269c4ee5b6108035741 100755 (executable)
@@ -50,7 +50,6 @@ def run():
     if report_stats:
         print("Ok")
 
-
     for object_no in range(objects):
         object = root_folder.linear[object_no]
 
@@ -73,7 +72,6 @@ def run():
                 print("NO REAL TITLE!!!")
                 print()
 
-
     if report_stats:
         print(objects, "objects passed")
 
index da9bf527f8f86f1a0741fd494bd4a91539ac40ce..04b923fec36ced20283302d8a0df83cfbc6ef0db 100755 (executable)
@@ -60,7 +60,6 @@ def run():
         sys.stdout.write("Writing %s: " % output_filename)
         sys.stdout.flush()
 
-
     if transl:
         new_ext = str(transl)
         transl_d = {}
@@ -95,7 +94,6 @@ def run():
 
         root_folder.walk_depth(Transl(transl_d))
 
-
     outfile = open(output_filename, 'w')
     root_folder.walk_depth(writer(outfile, prune))
     outfile.close()
index a97a421ce84fcf44b20d93d089f14da19f2c59d6..8f091377f1d922968b66bced34de5d347128a0f5 100755 (executable)
@@ -9,7 +9,7 @@ import sys
 
 
 __author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2002-2017 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2002-2023 PhiloSoft Design"
 __license__ = "GNU GPL"
 
 
@@ -28,7 +28,7 @@ def run():
         pass
 
     if report_stats:
-        print("Broytman set-real_title, Copyright (C) 2003-2017 PhiloSoft Design")
+        print("Broytman set-real_title, Copyright (C) 2003-2023 PhiloSoft Design")
 
     if args:
         sys.stderr.write("set-real_title: too many arguments\n")
@@ -50,7 +50,6 @@ def run():
     if report_stats:
         print("Ok")
 
-
     changed = 0
     for object_no in range(objects):
         object = root_folder.linear[object_no]
@@ -66,7 +65,6 @@ def run():
                 object.name = real_title
                 changed += 1
 
-
     if changed and report_stats:
         sys.stdout.write("Saving %s: " % storage.filename)
         sys.stdout.flush()
index be96b53ea608c3d56b243d89c9fc52b3b7d3c08f..52c5ee8d6d0ad2fd751b700f3415721865a97425 100755 (executable)
@@ -66,7 +66,6 @@ def run():
 
     title_list_file.close()
 
-
     from storage import storage
     storage = storage()
 
@@ -82,7 +81,6 @@ def run():
     if report_stats:
         print("Ok")
 
-
     # Run through the list of objects and check URLs/titles
     changed = 0
     for object_no in range(objects):
@@ -96,7 +94,6 @@ def run():
                     object.name = name
                     changed += 1
 
-
     if changed and report_stats:
         sys.stdout.write("Saving %s: " % storage.filename)
         sys.stdout.flush()