X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/0b40a7badf82c53c8a23b3a03273619f8440855d..9d749280bb1051991d391e0ee70174a613da16fc:/blackd.py diff --git a/blackd.py b/blackd.py index c5aa29c..1a3b369 100644 --- a/blackd.py +++ b/blackd.py @@ -2,6 +2,7 @@ import asyncio from concurrent.futures import Executor, ProcessPoolExecutor from functools import partial import logging +from multiprocessing import freeze_support from aiohttp import web import aiohttp_cors @@ -130,6 +131,7 @@ async def handle(request: web.Request, executor: Executor) -> web.Response: def patched_main() -> None: + freeze_support() black.patch_click() main()