Commit fcdcc68b authored by Vincent Pelletier's avatar Vincent Pelletier

Don't provide encoding parameter to json.dump & json.load.

parent cad26bac
......@@ -1081,8 +1081,7 @@ def asHTML(out, encoding, per_site, args, default_site, period_parameter_dict,
out.write('</body></html>')
def asJSON(out, encoding, per_site, *_):
json.dump([(x, y.asJSONState()) for x, y in per_site.iteritems()], out,
encoding='ascii')
json.dump([(x, y.asJSONState()) for x, y in per_site.iteritems()], out)
format_generator = {
'html': (asHTML, 'utf-8'),
......@@ -1257,7 +1256,7 @@ def main():
state_file = open(state_file_name)
with state_file:
load_start = time.time()
state = json.load(state_file, encoding='ascii')
state = json.load(state_file)
for url, site_state in state:
if url is None:
site = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment