X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=check_dups.py;h=df79df86cbe1aecea85ef89601b097c06b8c4225;hb=HEAD;hp=47a77df19381ae8a7f29a8755bf7f1e388d9304c;hpb=e2c7ec4349db18acd4c8d0902b0a5ab2cffd5be7;p=bookmarks_db.git diff --git a/check_dups.py b/check_dups.py index 47a77df..df79df8 100755 --- a/check_dups.py +++ b/check_dups.py @@ -52,7 +52,7 @@ def run(): sys.exit(1) if log_filename: - log_file = open(log_filename, 'w') + log_file = open(log_filename, 'wt') from storage import storage storage = storage() @@ -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