#! /usr/bin/env python
-"""
- Run through the bookmarks database and set name to real title
+"""Run through the bookmarks database and set name to real title
- Written by Broytman, Jul 2002 - May 2003. Copyright (C) 2002-2003 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
"""
-
+from __future__ import print_function
import sys
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2002-2017 PhiloSoft Design"
+__license__ = "GNU GPL"
+
+
def run():
from getopt import getopt
optlist, args = getopt(sys.argv[1:], "s")
pass
if report_stats:
- print "Broytman set-real_title, Copyright (C) 2003 PhiloSoft Design"
+ print("Broytman set-real_title, Copyright (C) 2003-2017 PhiloSoft Design")
if args:
sys.stderr.write("set-real_title: too many arguments\n")
objects = len(root_folder.linear)
if report_stats:
- print "Ok"
+ print("Ok")
changed = 0
storage.store(root_folder)
if changed and report_stats:
- print "Ok"
- print objects, "objects passed"
- print changed, "objects changed"
+ print("Ok")
+ print(objects, "objects passed")
+ print(changed, "objects changed")
if __name__ == '__main__':