From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 14FF51581FD for ; Fri, 12 Sep 2025 21:18:25 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id F0CE03415D2 for ; Fri, 12 Sep 2025 21:18:24 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 43151110572; Fri, 12 Sep 2025 21:18:18 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 3BB87110572 for ; Fri, 12 Sep 2025 21:18:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E343D340E98 for ; Fri, 12 Sep 2025 21:18:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 54B253980 for ; Fri, 12 Sep 2025 21:18:16 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1757711770.d2083db15f6eab373f96bef1da40fbb4f685b97b.sam@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: lib/portage/elog/ X-VCS-Repository: proj/portage X-VCS-Files: lib/portage/elog/mod_save_summary.py X-VCS-Directories: lib/portage/elog/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: d2083db15f6eab373f96bef1da40fbb4f685b97b X-VCS-Branch: master Date: Fri, 12 Sep 2025 21:18:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cdcd24d0-c406-4c83-add8-2c4f7921a290 X-Archives-Hash: dff129e2a0951d2bb10a0f8c62316c44 commit: d2083db15f6eab373f96bef1da40fbb4f685b97b Author: Florian Schmaus gentoo org> AuthorDate: Thu Sep 11 19:51:40 2025 +0000 Commit: Sam James gentoo org> CommitDate: Fri Sep 12 21:16:10 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=d2083db1 elog: Drop Python 2 compat code Signed-off-by: Florian Schmaus gentoo.org> Part-of: https://github.com/gentoo/portage/pull/1459 Signed-off-by: Sam James gentoo.org> lib/portage/elog/mod_save_summary.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/portage/elog/mod_save_summary.py b/lib/portage/elog/mod_save_summary.py index d2d10f4753..47f7da2673 100644 --- a/lib/portage/elog/mod_save_summary.py +++ b/lib/portage/elog/mod_save_summary.py @@ -77,11 +77,6 @@ def process(mysettings, key, logentries, fulltext): time_fmt = "%Y-%m-%d %H:%M:%S %Z" time_str = time.strftime(time_fmt, time.localtime(time.time())) - # Avoid potential UnicodeDecodeError in Python 2, since strftime - # returns bytes in Python 2, and %Z may contain non-ascii chars. - time_str = _unicode_decode( - time_str, encoding=_encodings["content"], errors="replace" - ) elogfile.write( _( ">>> Messages generated by process "