]> git.phdru.name Git - bookmarks_db.git/blobdiff - check_dups.py
Fix(Py3): `exec` in a local namespce
[bookmarks_db.git] / check_dups.py
index 0a267ac60544a28322657df7ba7227aa26e7deaa..47a77df19381ae8a7f29a8755bf7f1e388d9304c 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
 """Check duplicate URLs in the bookmarks database
 
 This file is a part of Bookmarks database and Internet robot.
@@ -9,12 +9,13 @@ import sys
 
 
 __author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2000-2017 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2000-2023 PhiloSoft Design"
 __license__ = "GNU GPL"
 
 
 log_file = None
 
+
 def report_dup(href, object_no):
     s = "Duplicate URL: %s (first at rec. %d)" % (href, object_no)
 
@@ -43,7 +44,7 @@ def run():
         pass
 
     if report_stats:
-        print("Broytman check_dups, Copyright (C) 2000-2017 PhiloSoft Design")
+        print("Broytman check_dups, Copyright (C) 2000-2023 PhiloSoft Design")
 
     if args:
         sys.stderr.write("check_urls: too many arguments\n")
@@ -68,7 +69,6 @@ def run():
     if report_stats:
         print("Ok")
 
-
     dup_dict = {}
 
     for object_no in range(objects):
@@ -81,7 +81,6 @@ def run():
             else:
                 dup_dict[href] = object_no
 
-
     if log_filename:
         log_file.close()