X-Git-Url: https://git.phdru.name/?p=bookmarks_db.git;a=blobdiff_plain;f=bkmk2db.py;h=b8905324ab2d620b04acb03b57dfc920390d54f0;hp=34fca60d21fa8ced2434430a1c0de314440d4f33;hb=c1c90856aeffcf8f2bcb7abf39934d5e0f8be36d;hpb=abee12cd1f9876c8a4e0d6dfbb854bbb118d01b8 diff --git a/bkmk2db.py b/bkmk2db.py index 34fca60..b890532 100755 --- a/bkmk2db.py +++ b/bkmk2db.py @@ -4,15 +4,17 @@ This file is a part of Bookmarks database and Internet robot. """ -__author__ = "Oleg Broytman " -__copyright__ = "Copyright (C) 1997-2012 PhiloSoft Design" -__license__ = "GNU GPL" - +from __future__ import print_function import sys, os from getopt import getopt from bkmk_parser import BkmkParser +__author__ = "Oleg Broytman " +__copyright__ = "Copyright (C) 1997-2017 PhiloSoft Design" +__license__ = "GNU GPL" + + def run(): optlist, args = getopt(sys.argv[1:], "is") @@ -59,7 +61,7 @@ def run(): try: size = os.path.getsize(filename) except: - print filename, ": no such file" + print(filename, ": no such file") sys.exit(1) @@ -106,10 +108,10 @@ def run(): del pbar if report_stats: - print "Ok" - print line_no, "lines proceed" - print parser.urls, "urls found" - print parser.objects, "objects created" + print("Ok") + print(line_no, "lines proceed") + print(parser.urls, "urls found") + print(parser.objects, "objects created") if ok: from storage import storage