X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=check_dups.py;h=f635c23ad9c48011c619a5ec0fcfaa4dcef3c818;hb=c1c90856aeffcf8f2bcb7abf39934d5e0f8be36d;hp=eebd09b20ac0c09691262cf032e804131c542c55;hpb=71712390f4edb041609ff7bc9272d12a5c1a9b1d;p=bookmarks_db.git diff --git a/check_dups.py b/check_dups.py index eebd09b..f635c23 100755 --- a/check_dups.py +++ b/check_dups.py @@ -4,12 +4,14 @@ This file is a part of Bookmarks database and Internet robot. """ +from __future__ import print_function +import sys + + __author__ = "Oleg Broytman " -__copyright__ = "Copyright (C) 2000-2012 PhiloSoft Design" +__copyright__ = "Copyright (C) 2000-2017 PhiloSoft Design" __license__ = "GNU GPL" -import sys - log_file = None @@ -19,7 +21,7 @@ def report_dup(href, object_no): if log_file: log_file.write("%s\n" % s) else: - print s + print(s) def run(): @@ -41,7 +43,7 @@ def run(): pass if report_stats: - print "Broytman check_dups, Copyright (C) 2000-2007 PhiloSoft Design" + print("Broytman check_dups, Copyright (C) 2000-2017 PhiloSoft Design") if args: sys.stderr.write("check_urls: too many arguments\n") @@ -64,7 +66,7 @@ def run(): objects = len(root_folder.linear) if report_stats: - print "Ok" + print("Ok") dup_dict = {} @@ -84,8 +86,8 @@ def run(): log_file.close() if report_stats: - print "Ok" - print objects, "objects passed" + print("Ok") + print(objects, "objects passed") if __name__ == '__main__':