From: Allan Simon Date: Fri, 8 May 2020 13:46:07 +0000 (+0200) Subject: permits black to run in AWS Lambda: (#1141) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/c0a7582e3d4cc8bec3b7f5a6c52b36880dcb57d7?hp=c0a7582e3d4cc8bec3b7f5a6c52b36880dcb57d7 permits black to run in AWS Lambda: (#1141) AWS Lambda and some other virtualized environment may not permit access to /dev/shm on Linux and as such, trying to use ProcessPoolExecutor will fail. As using parallelism is only a 'nice to have' feature of black, if it fails we gracefully fallback to a monoprocess implementation, which permits black to finish normally. Co-authored-by: Allan Simon ---