X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=check_title.py;h=391f5a147ec5882fbb3541604f9b741a3670377b;hb=ac86c51f608426450dfecc62163a52c9879d49ca;hp=c30e025d25ffd2bd89b027ad31d35a3167afc9b8;hpb=1f50f0961e4437d8306f541bce4fee0fa37301d7;p=bookmarks_db.git diff --git a/check_title.py b/check_title.py index c30e025..391f5a1 100755 --- a/check_title.py +++ b/check_title.py @@ -52,7 +52,7 @@ def run(): sys.exit(1) if log_filename: - log_file = open(log_filename, 'wt') + log_file = open(log_filename, 'wt', encoding='utf-8') from storage import storage storage = storage() @@ -81,7 +81,7 @@ def run(): unquoted_title = unquote_title(quote_title(object.real_title)) unquoted_name = unquote_title(object.name) if unquoted_name != unquoted_title: - report_title(object.href, unquoted_name unquoted_title) + report_title(object.href, unquoted_name, unquoted_title) else: report_title(object.href, object.name, None)