X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/0b40a7badf82c53c8a23b3a03273619f8440855d..fd9f529d8be54a40106043b8135b1f0533420f90:/blackd.py?ds=inline 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()