X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/b2ee211b5ad84b62738ac0997b73bf6ee9a74d06..33e2b4401439f2015065704c08d22f008f016235:/src/black/__init__.py?ds=sidebyside diff --git a/src/black/__init__.py b/src/black/__init__.py index f46b866..90aad22 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -54,6 +54,13 @@ from blib2to3.pgen2 import token from _black_version import version as __version__ +# If our environment has uvloop installed lets use it +try: + import uvloop + + uvloop.install() +except ImportError: + pass # types FileContent = str