X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Storage%2Fdebug-json%2Fpprint-json.py;h=6b9d28056172a3f446b237c679edef06e1dd3ce1;hb=64b2e0c0275c1487574614bbfb0ca1ef50fae1df;hp=2df6a815a3566ff52a7c752abffebcd6a950913f;hpb=3a248e2d5c95bcc5b92db5fe9cd637bc201edec5;p=bookmarks_db.git diff --git a/Storage/debug-json/pprint-json.py b/Storage/debug-json/pprint-json.py index 2df6a81..6b9d280 100755 --- a/Storage/debug-json/pprint-json.py +++ b/Storage/debug-json/pprint-json.py @@ -1,10 +1,10 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 import sys import json from pprint import pprint -infile = open(sys.argv[1], 'rb') +infile = open(sys.argv[1], 'rt', encoding='utf-8') bkmk_s = infile.read() infile.close()