This file is a part of Bookmarks database and Internet robot.
"""
-__author__ = "Oleg Broytman <phd@phdru.name>"
-__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 <phd@phdru.name>"
+__copyright__ = "Copyright (C) 1997-2017 PhiloSoft Design"
+__license__ = "GNU GPL"
+
+
def run():
optlist, args = getopt(sys.argv[1:], "is")
try:
size = os.path.getsize(filename)
except:
- print filename, ": no such file"
+ print(filename, ": no such file")
sys.exit(1)
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