]> git.phdru.name Git - bookmarks_db.git/commitdiff
Fix(Storage/bkmk_stjson.py): open file in text mode
authorOleg Broytman <phd@phdru.name>
Tue, 31 Oct 2023 19:03:27 +0000 (22:03 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 12 Nov 2023 19:21:09 +0000 (22:21 +0300)
Storage/bkmk_stjson.py

index 5022dfa12f00d158a3e3e0c33b32fd1ad02cbc67..a748f0e2ffa029270a2774b955495baa67613237 100644 (file)
@@ -97,7 +97,7 @@ class storage_json(Walker):
         del self.dict
 
     def load(self):
-        infile = open(self.filename, 'rb')
+        infile = open(self.filename, 'rt')
         bkmk_s = infile.read()
         infile.close()