X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/692c0f50d91e3163bb87401e4a0e070b2eb5b163..3980b4b1767a35c6d99f9231f14d4690d0a270c2:/src/blackd/__init__.py diff --git a/src/blackd/__init__.py b/src/blackd/__init__.py index fc68473..3e2a7e7 100644 --- a/src/blackd/__init__.py +++ b/src/blackd/__init__.py @@ -20,6 +20,7 @@ except ImportError as ie: sys.exit(-1) import black +from black.concurrency import maybe_install_uvloop import click from _black_version import version as __version__ @@ -202,6 +203,7 @@ def parse_python_variant_header(value: str) -> Tuple[bool, Set[black.TargetVersi def patched_main() -> None: + maybe_install_uvloop() freeze_support() black.patch_click() main()