From 8e57cd2751a3ea29afe9abc5dbc7996330a8ecad Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Mon, 26 Oct 2020 11:45:12 +0100 Subject: [PATCH] Remove uvloop (#2176) --- requirements.txt | 1 - supervisor/__main__.py | 15 +-------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/requirements.txt b/requirements.txt index e4232d7ec..517baf727 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,5 +16,4 @@ pytz==2020.1 pyudev==0.22.0 ruamel.yaml==0.15.100 sentry-sdk==0.19.1 -uvloop==0.14.0 voluptuous==0.12.0 diff --git a/supervisor/__main__.py b/supervisor/__main__.py index ae174244e..c5e0e2613 100644 --- a/supervisor/__main__.py +++ b/supervisor/__main__.py @@ -9,25 +9,12 @@ from supervisor import bootstrap _LOGGER: logging.Logger = logging.getLogger(__name__) -def initialize_event_loop(): - """Attempt to use uvloop.""" - try: - # pylint: disable=import-outside-toplevel - import uvloop - - uvloop.install() - except ImportError: - pass - - return asyncio.get_event_loop() - - # pylint: disable=invalid-name if __name__ == "__main__": bootstrap.initialize_logging() # Init async event loop - loop = initialize_event_loop() + loop = asyncio.get_event_loop() # Check if all information are available to setup Supervisor bootstrap.check_environment()