Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed Sep 9, 2023
1 parent 93d8484 commit 88ddb95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/black/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def write(self, sources: Iterable[Path]) -> None:
with tempfile.NamedTemporaryFile(
dir=str(self.cache_file.parent), delete=False
) as f:
print("DATA TO PICKLE", self.file_data)
pickle.dump(self.file_data, f, protocol=4)
os.replace(f.name, self.cache_file)
except OSError:
Expand Down

0 comments on commit 88ddb95

Please sign in to comment.