]> git.phdru.name Git - bookmarks_db.git/blobdiff - set-real_title.py
Feat(Python3): `raise Error, value` -> `raise Error(value)`
[bookmarks_db.git] / set-real_title.py
index 621d929a3d7dbfe46273ff04d05030c3656a733a..fab938f6ae6309a674cb10df7dfe2e7c11bb7368 100755 (executable)
@@ -4,15 +4,14 @@
 This file is a part of Bookmarks database and Internet robot.
 """
 
-__version__ = "$Revision$"[11:-2]
-__revision__ = "$Id$"[5:-2]
-__date__ = "$Date$"[7:-2]
+from __future__ import print_function
+import sys
+
+
 __author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2002-2011 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2002-2017 PhiloSoft Design"
 __license__ = "GNU GPL"
 
-import sys
-
 
 def run():
    from getopt import getopt
@@ -29,7 +28,7 @@ def run():
       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")
@@ -49,7 +48,7 @@ def run():
    objects = len(root_folder.linear)
 
    if report_stats:
-      print "Ok"
+      print("Ok")
 
 
    changed = 0
@@ -80,9 +79,9 @@ def run():
       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__':