mirror of
https://github.com/powerline/powerline.git
synced 2025-04-08 19:25:04 +02:00
Fix #621
This commit is contained in:
parent
db27dd37a6
commit
f94ed68211
@ -8,10 +8,11 @@ from threading import Event, Lock
|
||||
from collections import defaultdict
|
||||
|
||||
import json
|
||||
import codecs
|
||||
|
||||
|
||||
def open_file(path):
|
||||
return open(path, 'r')
|
||||
return codecs.open(path, encoding='utf-8')
|
||||
|
||||
|
||||
def load_json_config(config_file_path, load=json.load, open_file=open_file):
|
||||
|
Loading…
x
Reference in New Issue
Block a user