commit: 5d48806c78febc559d6ae726303f35dd32435474 Author: Aaron Bauman <bman <AT> gentoo <DOT> org> AuthorDate: Tue Aug 4 02:44:58 2020 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Tue Aug 4 03:08:47 2020 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=5d48806c
lib/portage/util/socks5.py: fix reimport * This drops the internal class import of the asyncio module. It is not available in all supported Python versions. Suggested-by: Zac Medico <zmedico <AT> gentoo.org> Signed-off-by: Aaron Bauman <bman <AT> gentoo.org> Signed-off-by: Zac Medico <zmedico <AT> 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 = {}