-#! /usr/bin/env python
+#! /usr/bin/env python3
"""Run through the bookmarks database and set name to real title
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"
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")
sys.stderr.write("Usage: set-real_title [-s]\n")
if report_stats:
print("Ok")
-
changed = 0
for object_no in range(objects):
object = root_folder.linear[object_no]
object.name = real_title
changed += 1
-
if changed and report_stats:
sys.stdout.write("Saving %s: " % storage.filename)
sys.stdout.flush()