* This drops the internal class import of the asyncio module. It is not available in all supported Python versions.
Suggested-by: Zac Medico <zmed...@gentoo.org> Signed-off-by: Aaron Bauman <b...@gentoo.org> --- lib/portage/util/socks5.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/portage/util/socks5.py b/lib/portage/util/socks5.py index c0657ae2a..65d2400e8 100644 --- a/lib/portage/util/socks5.py +++ b/lib/portage/util/socks5.py @@ -1,5 +1,5 @@ # SOCKSv5 proxy manager for network-sandbox -# Copyright 2015-2019 Gentoo Authors +# Copyright 2015-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 import errno @@ -14,7 +14,6 @@ from portage.process import atexit_register, spawn from portage.util.futures.compat_coroutine import coroutine from portage.util.futures import asyncio - class ProxyManager: """ A class to start and control a single running SOCKSv5 server process @@ -33,10 +32,6 @@ class ProxyManager: paths) @type settings: portage.config """ - try: - import asyncio # NOQA - except ImportError: - raise NotImplementedError('SOCKSv5 proxy requires asyncio module') tmpdir = os.path.join(settings['PORTAGE_TMPDIR'], 'portage') ensure_dirs_kwargs = {} -- 2.28.0