X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/692c0f50d91e3163bb87401e4a0e070b2eb5b163..ab9baf0d65dedb87a853f87afc63d40276e10b3b:/src/blackd/__init__.py?ds=inline diff --git a/src/blackd/__init__.py b/src/blackd/__init__.py index fc68473..10b6168 100644 --- a/src/blackd/__init__.py +++ b/src/blackd/__init__.py @@ -22,6 +22,14 @@ except ImportError as ie: import black import click +# If our environment has uvloop installed lets use it +try: + import uvloop + + uvloop.install() +except ImportError: + pass + from _black_version import version as __version__ # This is used internally by tests to shut down the server prematurely