From ee7151e50f812a368faff0be910e6db26e282680 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Langa?= Date: Thu, 14 Mar 2019 16:40:31 +0100 Subject: [PATCH 1/1] Mention atomic cache creation in the change log --- README.md | 3 +++ blib2to3/pgen2/grammar.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 71bc7e7..c34fc29 100644 --- a/README.md +++ b/README.md @@ -963,6 +963,9 @@ More details can be found in [CONTRIBUTING](CONTRIBUTING.md). * *Black* now properly formats multiple files in parallel on Windows (#632) +* *Black* now creates cache files atomically which allows it to be used + in parallel pipelines (like `xargs -P8`) (#673) + * `blackd` now supports CORS (#622) ### 18.9b0 diff --git a/blib2to3/pgen2/grammar.py b/blib2to3/pgen2/grammar.py index b20b923..3ccf38f 100644 --- a/blib2to3/pgen2/grammar.py +++ b/blib2to3/pgen2/grammar.py @@ -13,7 +13,7 @@ fallback token code OP, but the parser needs the actual token code. """ # Python imports -import os.path +import os import pickle import tempfile -- 2.39.5