]> git.phdru.name Git - bookmarks_db.git/blobdiff - sort_db.py
Fix(Robot): Stop splitting and un-splitting URLs
[bookmarks_db.git] / sort_db.py
index fce1ac4ba0e6cca48138afc3cc5efe1af6ca6105..4dd117e51219cbf818d3c9ce4db004b676e07cf2 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
 """Sort bookmarks DB according to a rule:
       -a - by AddDate
       -v - by LastVisit
@@ -99,7 +99,7 @@ def run():
         sys.stdout.write("Writing %s: " % output_filename)
         sys.stdout.flush()
 
-    outfile = open(output_filename, 'w')
+    outfile = open(output_filename, 'wt', encoding='utf-8')
     writer = writer(outfile)
     writer.root_folder(root_folder)
     walk_linear(linear, writer)