Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: bin/
Date: Fri, 24 Jun 2022 02:20:29
Message-Id: 1656037139.8c0bcea15410ae81f2f157ba1b52d5c11cbf3966.zmedico@gentoo
1 commit: 8c0bcea15410ae81f2f157ba1b52d5c11cbf3966
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 24 02:16:31 2022 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 24 02:18:59 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=8c0bcea1
7
8 bin/socks5-server.py: fix python3.10 DeprecationWarning
9
10 DeprecationWarning: There is no current event loop
11
12 Bug: https://bugs.gentoo.org/794115
13 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
14
15 bin/socks5-server.py | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-)
17
18 diff --git a/bin/socks5-server.py b/bin/socks5-server.py
19 index a35d21ea0..442e96942 100644
20 --- a/bin/socks5-server.py
21 +++ b/bin/socks5-server.py
22 @@ -1,6 +1,6 @@
23 #!/usr/bin/env python
24 # SOCKSv5 proxy server for network-sandbox
25 -# Copyright 2015 Gentoo Foundation
26 +# Copyright 2015-2022 Gentoo Authors
27 # Distributed under the terms of the GNU General Public License v2
28
29 import asyncio
30 @@ -223,7 +223,7 @@ if __name__ == "__main__":
31 print("Usage: %s <socket-path>" % sys.argv[0])
32 sys.exit(1)
33
34 - loop = asyncio.get_event_loop()
35 + loop = asyncio.new_event_loop()
36 s = Socks5Server()
37 server = loop.run_until_complete(
38 asyncio.start_unix_server(s.handle_proxy_conn, sys.argv[1])