From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 534B113835A for ; Sat, 6 Mar 2021 09:06:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8B8A2E0815; Sat, 6 Mar 2021 09:06:02 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 75C20E0815 for ; Sat, 6 Mar 2021 09:06:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8C38D340EB2 for ; Sat, 6 Mar 2021 09:06:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1A544567 for ; Sat, 6 Mar 2021 09:05:59 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1615021408.af100c65ebf7fd84307a84819602a934ebb0741c.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: lib/portage/ X-VCS-Repository: proj/portage X-VCS-Files: lib/portage/versions.py X-VCS-Directories: lib/portage/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: af100c65ebf7fd84307a84819602a934ebb0741c X-VCS-Branch: master Date: Sat, 6 Mar 2021 09:05:59 +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: a10d8ef5-9b2a-46dd-9db3-ad6cec626209 X-Archives-Hash: 3e60fe33ac7cd39db71ebd9f202b0d3d commit: af100c65ebf7fd84307a84819602a934ebb0741c Author: Matt Turner gentoo org> AuthorDate: Thu Mar 4 19:23:46 2021 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Mar 6 09:03:28 2021 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=af100c65 Remove outdated mention of Python 2 from comment Fixes: 5e9fe0f2a ("Eliminate basestring/long/_unicode py3 compat") Signed-off-by: Matt Turner gentoo.org> Signed-off-by: Zac Medico gentoo.org> lib/portage/versions.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/portage/versions.py b/lib/portage/versions.py index 317683b17..1dc942124 100644 --- a/lib/portage/versions.py +++ b/lib/portage/versions.py @@ -341,11 +341,11 @@ def catpkgsplit(mydata, silent=1, eapi=None): class _pkg_str(str): """ - This class represents a cpv. It inherits from str (unicode in python2) and - has attributes that cache results for use by functions like catpkgsplit and - cpv_getkey which are called frequently (especially in match_from_list). - Instances are typically created in dbapi.cp_list() or the Atom contructor, - and propagate from there. Generally, code that pickles these objects will + This class represents a cpv. It inherits from str and has attributes + that cache results for use by functions like catpkgsplit and cpv_getkey + which are called frequently (especially in match_from_list). Instances + are typically created in dbapi.cp_list() or the Atom contructor, and + propagate from there. Generally, code that pickles these objects will manually convert them to a plain unicode object first. Instances of this class will have missing attributes for metadata that