Skip to content
Permalink
Browse files

Fix json.dump argument order

  • Loading branch information
Kwpolska committed Jun 13, 2017
1 parent 97316e1 commit 0ead8930238816cceaee3aab7412e68018a29e7d
Showing with 1 addition and 1 deletion.
  1. +1 −1 nikola/state.py
@@ -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.
You can’t perform that action at this time.