]> git.phdru.name Git - bookmarks_db.git/blobdiff - db2bkmk.py
Chore: Explicitly open text files in text mode
[bookmarks_db.git] / db2bkmk.py
index 4e50101c6176318b377475c5704544d3595b31f0..7d1d9aa19f1c46fdebd47e45f859ab7a7c7e2ba7 100755 (executable)
@@ -97,7 +97,7 @@ def run():
 
         root_folder.walk_depth(Transl(transl_d))
 
-    outfile = open(output_filename, 'w', encoding='utf-8')
+    outfile = open(output_filename, 'wt', encoding='utf-8')
     root_folder.walk_depth(writer(outfile, prune))
     outfile.close()