From: Ivan Katanić Date: Wed, 4 Apr 2018 16:53:34 +0000 (+0100) Subject: Fix --check for multiple files (#101) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/1d3d743dfb71c7daaa9faa9186e00b053cd3cccb?ds=sidebyside Fix --check for multiple files (#101) --- diff --git a/black.py b/black.py index 34ffbad..01390b3 100644 --- a/black.py +++ b/black.py @@ -246,7 +246,7 @@ async def schedule_formatting( loop.add_signal_handler(signal.SIGTERM, cancel, _task_values) await asyncio.wait(tasks.values()) cancelled = [] - report = Report(check=not write_back, quiet=quiet) + report = Report(check=write_back is WriteBack.NO, quiet=quiet) for src, task in tasks.items(): if not task.done(): report.failed(src, "timed out, cancelling")