]> git.phdru.name Git - bookmarks_db.git/blobdiff - bkmk-add.py
Style: Fix flake8 E501 line too long
[bookmarks_db.git] / bkmk-add.py
index df12452433c27f4d9c5539cc28f7d5186aeb0541..a21a1b131570ab94e953d45b9c15b24238f3b8da 100755 (executable)
@@ -6,10 +6,13 @@ This file is a part of Bookmarks database and Internet robot.
 """
 
 __author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2002-2017 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2002-2023 PhiloSoft Design"
 __license__ = "GNU GPL"
 
-import sys, os, time
+import os
+import sys
+import time
+
 from bkmk_objects import Bookmark
 from robots import robot
 
@@ -57,13 +60,14 @@ def run():
     global robot
     robot = robot(None)
 
-    if robot.check_url(bookmark): # get real title and last modified date
-        if title: # forced title
+    if robot.check_url(bookmark):  # get real title and last modified date
+        if title:  # forced title
             bookmark.name = title
         elif hasattr(bookmark, "real_title"):
             bookmark.name = bookmark.real_title
         if report_stats:
-            sys.stdout.write("Adding %s with title '%s'\n" % (href, bookmark.name))
+            sys.stdout.write("Adding %s with title '%s'\n"
+                             % (href, bookmark.name))
         del bookmark.parent
         root_folder.append(bookmark)