]> git.phdru.name Git - bookmarks_db.git/blobdiff - convert_st.py
Feat(Python3): `<>` -> `!=`
[bookmarks_db.git] / convert_st.py
index c8a6a240fe08b7f1c9b879c4167422d672ef5b21..4c0cb15d206968c4045d78cd930ad9fc4a03c437 100755 (executable)
@@ -5,7 +5,7 @@ This file is a part of Bookmarks database and Internet robot.
 """
 
 __author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2000-2012 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2000-2017 PhiloSoft Design"
 __license__ = "GNU GPL"
 
 import sys
@@ -25,7 +25,7 @@ def run():
    except NameError:
       pass
 
-   if len(args) <> 1:
+   if len(args) != 1:
       sys.stderr.write("convert_st: too many or too few arguments\n")
       sys.stderr.write("Usage: convert_st [-s] new_storage\n")
       sys.exit(1)
@@ -47,14 +47,14 @@ def run():
    root_folder = storage.load()
 
    if report_stats:
-      print "Ok"
+      print("Ok")
       sys.stdout.write("Converting to %s: " % new_storage.filename)
       sys.stdout.flush()
 
    new_storage.store(root_folder)
 
    if report_stats:
-      print "Ok"
+      print("Ok")
 
 
 if __name__ == '__main__':