This commit is contained in:
Kovid Goyal 2013-08-07 16:58:27 +05:30 committed by Kim Silkebækken
parent db27dd37a6
commit f94ed68211

View File

@ -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):