X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=set-title-list.py;h=4644a81a7786eef016dc5ebf1364d10d727a8bb5;hb=9f2e541f950d245198f893936de4ebece69894ba;hp=065407ed1449c04adf35e6154f4620dacbcee09d;hpb=e2c7ec4349db18acd4c8d0902b0a5ab2cffd5be7;p=bookmarks_db.git diff --git a/set-title-list.py b/set-title-list.py index 065407e..4644a81 100755 --- a/set-title-list.py +++ b/set-title-list.py @@ -58,7 +58,7 @@ def run(): ) else: # We've got 3 lines - add new entry to the mapping - if titles_dict.has_key(URL): + if URL in titles_dict: if title != titles_dict[URL]: raise ValueError( "titles are not identical for URL `%s': `%s' != `%s'" @@ -96,7 +96,7 @@ def run(): if object.isBookmark: URL = object.href - if titles_dict.has_key(URL): + if URL in titles_dict: name = titles_dict[URL] if object.name != name: object.name = name