]> git.phdru.name Git - bookmarks_db.git/blobdiff - bkmk2db.py
Fix(Robot): Stop splitting and un-splitting URLs
[bookmarks_db.git] / bkmk2db.py
index e3971a6b3177c53368b93d04674515b7eda12e5c..629668d4cbc99fe7dd8690376bfa6b0875b22d4c 100755 (executable)
@@ -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.
@@ -76,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