Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0ead893

Browse files
committedJun 13, 2017
Fix json.dump argument order
1 parent 97316e1 commit 0ead893

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎nikola/state.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,5 @@ def _save(self):
8383
dname = os.path.dirname(self._path)
8484
with tempfile.NamedTemporaryFile(dir=dname, delete=False, mode='w+', encoding='utf-8') as outf:
8585
tname = outf.name
86-
json.dump(outf, self._local.data, sort_keys=True, indent=2)
86+
json.dump(self._local.data, outf, sort_keys=True, indent=2)
8787
shutil.move(tname, self._path)

0 commit comments

Comments
 (0)
Please sign in to comment.