commit:     d628848bfa2734db71f56f671cb7e66bdf5c5638
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 23 18:27:38 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Oct 23 18:27:38 2025 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=d628848b

bin: drop old Python compat shim

Signed-off-by: Sam James <sam <AT> gentoo.org>

 bin/ebuild        | 7 +------
 bin/ebuild-ipc.py | 7 +------
 bin/egencache     | 7 +------
 bin/emaint        | 7 +------
 bin/emerge        | 7 +------
 bin/portageq      | 7 +------
 6 files changed, 6 insertions(+), 36 deletions(-)

diff --git a/bin/ebuild b/bin/ebuild
index b313094942..7ce9f27c75 100755
--- a/bin/ebuild
+++ b/bin/ebuild
@@ -1,15 +1,10 @@
 #!/usr/bin/env python
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 import os
 import signal
 
-# For compatibility with Python < 3.8
-raise_signal = getattr(
-    signal, "raise_signal", lambda signum: os.kill(os.getpid(), signum)
-)
-
 
 # Inherit from KeyboardInterrupt to avoid a traceback from asyncio.
 class SignalInterrupt(KeyboardInterrupt):

diff --git a/bin/ebuild-ipc.py b/bin/ebuild-ipc.py
index 059732eaf7..5d7200893f 100755
--- a/bin/ebuild-ipc.py
+++ b/bin/ebuild-ipc.py
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# Copyright 2010-2022 Gentoo Authors
+# Copyright 2010-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 #
 # This is a helper which ebuild processes can use
@@ -8,11 +8,6 @@
 import os
 import signal
 
-# For compatibility with Python < 3.8
-raise_signal = getattr(
-    signal, "raise_signal", lambda signum: os.kill(os.getpid(), signum)
-)
-
 
 # Inherit from KeyboardInterrupt to avoid a traceback from asyncio.
 class SignalInterrupt(KeyboardInterrupt):

diff --git a/bin/egencache b/bin/egencache
index 36477e1abf..04eef08d97 100755
--- a/bin/egencache
+++ b/bin/egencache
@@ -1,15 +1,10 @@
 #!/usr/bin/env python
-# Copyright 2009-2022 Gentoo Authors
+# Copyright 2009-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 import os
 import signal
 
-# For compatibility with Python < 3.8
-raise_signal = getattr(
-    signal, "raise_signal", lambda signum: os.kill(os.getpid(), signum)
-)
-
 
 # Inherit from KeyboardInterrupt to avoid a traceback from asyncio.
 class SignalInterrupt(KeyboardInterrupt):

diff --git a/bin/emaint b/bin/emaint
index da925e1dad..7b3ec6d562 100755
--- a/bin/emaint
+++ b/bin/emaint
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# Copyright 2005-2023 Gentoo Authors
+# Copyright 2005-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 """System health checks and maintenance utilities.
@@ -8,11 +8,6 @@
 import os
 import signal
 
-# For compatibility with Python < 3.8
-raise_signal = getattr(
-    signal, "raise_signal", lambda signum: os.kill(os.getpid(), signum)
-)
-
 
 # Inherit from KeyboardInterrupt to avoid a traceback from asyncio.
 class SignalInterrupt(KeyboardInterrupt):

diff --git a/bin/emerge b/bin/emerge
index bdc587d37e..246c641b4f 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -1,16 +1,11 @@
 #!/usr/bin/env python
-# Copyright 2006-2023 Gentoo Authors
+# Copyright 2006-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 import os
 import signal
 import sys
 
-# For compatibility with Python < 3.8
-raise_signal = getattr(
-    signal, "raise_signal", lambda signum: os.kill(os.getpid(), signum)
-)
-
 
 # Inherit from KeyboardInterrupt to avoid a traceback from asyncio.
 class SignalInterrupt(KeyboardInterrupt):

diff --git a/bin/portageq b/bin/portageq
index 869ec111b1..a1c824c6f0 100755
--- a/bin/portageq
+++ b/bin/portageq
@@ -1,15 +1,10 @@
 #!/usr/bin/env python
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 import os
 import signal
 
-# For compatibility with Python < 3.8
-raise_signal = getattr(
-    signal, "raise_signal", lambda signum: os.kill(os.getpid(), signum)
-)
-
 
 # Inherit from KeyboardInterrupt to avoid a traceback from asyncio.
 class SignalInterrupt(KeyboardInterrupt):

Reply via email to