Skip to content

Commit

Permalink
Fix json.dump argument order
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwpolska committed Jun 13, 2017
1 parent 97316e1 commit 0ead893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/state.py
Expand Up @@ -83,5 +83,5 @@ def _save(self):
dname = os.path.dirname(self._path)
with tempfile.NamedTemporaryFile(dir=dname, delete=False, mode='w+', encoding='utf-8') as outf:
tname = outf.name
json.dump(outf, self._local.data, sort_keys=True, indent=2)
json.dump(self._local.data, outf, sort_keys=True, indent=2)
shutil.move(tname, self._path)

0 comments on commit 0ead893

Please sign in to comment.