X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/5f9eb9e4f7baa35cb87eb3f8a9fed81f1195a72e..5c2dd96a69a935cf45acbdf2ffabbd39b27d38fa:/blackd.py diff --git a/blackd.py b/blackd.py index 50614d0..e1006a1 100644 --- a/blackd.py +++ b/blackd.py @@ -108,6 +108,10 @@ async def handle(request: web.Request, executor: Executor) -> web.Response: return web.Response(status=500, text=str(e)) -if __name__ == "__main__": +def patched_main() -> None: black.patch_click() main() + + +if __name__ == "__main__": + patched_main()