-#! /usr/bin/env python
+#! /usr/bin/env python3
"""Convert a bkmk database back to bookmarks.html
(or other format defined by writer)
sys.stdout.flush()
if transl:
- new_ext = str(transl)
transl_d = {}
from m_lib.flad import fladm
href = b.href
transl_d = self.transl_d
- if transl_d.has_key(href):
+ if href in transl_d:
b.href = transl_d[href]
root_folder.walk_depth(Transl(transl_d))
- outfile = open(output_filename, 'w')
+ outfile = open(output_filename, 'wt', encoding='utf-8')
root_folder.walk_depth(writer(outfile, prune))
outfile.close()