X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bkmk2db.py;h=629668d4cbc99fe7dd8690376bfa6b0875b22d4c;hb=066f29ea81222a8a2ddd4ab1aff131d7fc1ec37f;hp=e274108f4d03bd42e1d82200ea98df9f0b801565;hpb=b2b302b348f0b711557961c70744c818cff664f0;p=bookmarks_db.git diff --git a/bkmk2db.py b/bkmk2db.py index e274108..629668d 100755 --- a/bkmk2db.py +++ b/bkmk2db.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Convert Netscape Navigator's or Mozilla's bookmarks.html to a database This file is a part of Bookmarks database and Internet robot. @@ -42,7 +42,8 @@ def run(): filename = args[0] else: - filename = 'bookmarks.html' # good name both for DOS (bookmark.htm) and UNIX + # good name both for DOS (bookmark.htm) and UNIX + filename = 'bookmarks.html' if report_stats: from storage import storage_name @@ -75,7 +76,7 @@ def run(): else: dos_add = 0 # UNIX' and Mac's len() counts CR or LF correct - infile = open(filename, 'r') + infile = open(filename, 'rt') parser = BkmkParser() line_no = 0