"""
__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
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)