]> git.phdru.name Git - bookmarks_db.git/blobdiff - set-title-list.py
Chore: Explicitly open text files in text mode
[bookmarks_db.git] / set-title-list.py
index 4644a81a7786eef016dc5ebf1364d10d727a8bb5..be0684c15acad921c9f7e04dca9afe3d1fce4109 100755 (executable)
@@ -42,7 +42,7 @@ def run():
     URL = None
     title = None
 
-    title_list_file = open(args[0], 'r')
+    title_list_file = open(args[0], 'rt')
     for line in title_list_file:
         line = line[:-1]  # strip trailing newline
         if URL is None: