]> git.phdru.name Git - bookmarks_db.git/blobdiff - check_dups.py
Fix(Py3): Fix `list.join(separator)`
[bookmarks_db.git] / check_dups.py
index 7fca79a08f009e8fb476afad24e05fd2360e149c..25c2936da800999cf5e84b9a1e2b0e6c4ec83bd6 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.
@@ -76,7 +76,7 @@ def run():
 
         if object.isBookmark:
             href = object.href
-            if dup_dict.has_key(href):
+            if href in dup_dict:
                 report_dup(href, dup_dict[href])
             else:
                 dup_dict[href] = object_no