commit: d2083db15f6eab373f96bef1da40fbb4f685b97b Author: Florian Schmaus <flow <AT> gentoo <DOT> org> AuthorDate: Thu Sep 11 19:51:40 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> 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 <flow <AT> gentoo.org> Part-of: https://github.com/gentoo/portage/pull/1459 Signed-off-by: Sam James <sam <AT> 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 "
