X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=db2bkmk.py;h=28ebc76959e5fb6d470e4a1d3fb92be1fee4a7bf;hb=71900f3630cb51580964038b78100d60e3671981;hp=a9e0fd455aa73acb36589ef1afc7a0a2d740ef63;hpb=71712390f4edb041609ff7bc9272d12a5c1a9b1d;p=bookmarks_db.git diff --git a/db2bkmk.py b/db2bkmk.py index a9e0fd4..28ebc76 100755 --- a/db2bkmk.py +++ b/db2bkmk.py @@ -5,7 +5,7 @@ This file is a part of Bookmarks database and Internet robot. """ __author__ = "Oleg Broytman " -__copyright__ = "Copyright (C) 2000-2012 PhiloSoft Design" +__copyright__ = "Copyright (C) 2000-2017 PhiloSoft Design" __license__ = "GNU GPL" import sys @@ -56,7 +56,7 @@ def run(): root_folder = storage.load() if report_stats: - print "Ok" + print("Ok") sys.stdout.write("Writing %s: " % output_filename) sys.stdout.flush() @@ -77,7 +77,7 @@ def run(): for record in transl_db: transl_d[record["URL2"]] = record["URL1"] else: - raise ValueError, "transl (%d) must be 1 or 2" % transl + raise ValueError("transl (%d) must be 1 or 2" % transl) del transl_db # Save few bytes of memory @@ -101,7 +101,7 @@ def run(): outfile.close() if report_stats: - print "Ok" + print("Ok") if __name__ == '__main__':