Skip to content

Commit

Permalink
Remove encoding argument to json.dump
Browse files Browse the repository at this point in the history
This argument no longer exists for Python 3 (and is the default anyway)
  • Loading branch information
mstimberg committed Feb 21, 2019
1 parent bf19814 commit 64c1c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brian2/codegen/cpp_prefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
else:
to_store = {hostname: flags}
with open(flag_file, 'w') as f:
json.dump(to_store, f, encoding='utf-8')
json.dump(to_store, f)
except (IOError, OSError) as ex:
logger.debug('Writing file "{}" to store CPU flags failed with '
'error "{}".'.format(flag_file, str(ex)))
Expand Down

0 comments on commit 64c1c02

Please sign in to comment.