X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=sort_db.py;h=4dd117e51219cbf818d3c9ce4db004b676e07cf2;hb=a6ac81d60daa6e21ce04bd1ca2d598f3b6615d80;hp=fce1ac4ba0e6cca48138afc3cc5efe1af6ca6105;hpb=62ab6d5ee349ff88ed4995735711e1e3de904302;p=bookmarks_db.git diff --git a/sort_db.py b/sort_db.py index fce1ac4..4dd117e 100755 --- a/sort_db.py +++ b/sort_db.py @@ -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)