diff --git a/dvc/state.py b/dvc/state.py index 63882ddf3..14792217f 100644 --- a/dvc/state.py +++ b/dvc/state.py @@ -93,8 +93,9 @@ class State(object): return with SignalHandler(): + j = json.dumps(self._db) with open(self.state_file, 'w+') as fd: - json.dump(self._db, fd) + fd.write(j) def dump(self): with self._lock: