Gentoo Archives: gentoo-portage-dev

From: Matt Turner <mattst88@g.o>
To: gentoo-portage-dev@l.g.o
Cc: Matt Turner <mattst88@g.o>
Subject: [gentoo-portage-dev] [PATCH 2/3] Remove outdated mention of Python 2 from comment
Date: Thu, 04 Mar 2021 19:24:01
Message-Id: 20210304192347.899796-2-mattst88@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH 1/3] Remove Python 2 workaround by Matt Turner
1 Fixes: 5e9fe0f2a ("Eliminate basestring/long/_unicode py3 compat")
2 Signed-off-by: Matt Turner <mattst88@g.o>
3 ---
4 lib/portage/versions.py | 10 +++++-----
5 1 file changed, 5 insertions(+), 5 deletions(-)
6
7 diff --git a/lib/portage/versions.py b/lib/portage/versions.py
8 index 317683b17..1dc942124 100644
9 --- a/lib/portage/versions.py
10 +++ b/lib/portage/versions.py
11 @@ -341,11 +341,11 @@ def catpkgsplit(mydata, silent=1, eapi=None):
12
13 class _pkg_str(str):
14 """
15 - This class represents a cpv. It inherits from str (unicode in python2) and
16 - has attributes that cache results for use by functions like catpkgsplit and
17 - cpv_getkey which are called frequently (especially in match_from_list).
18 - Instances are typically created in dbapi.cp_list() or the Atom contructor,
19 - and propagate from there. Generally, code that pickles these objects will
20 + This class represents a cpv. It inherits from str and has attributes
21 + that cache results for use by functions like catpkgsplit and cpv_getkey
22 + which are called frequently (especially in match_from_list). Instances
23 + are typically created in dbapi.cp_list() or the Atom contructor, and
24 + propagate from there. Generally, code that pickles these objects will
25 manually convert them to a plain unicode object first.
26
27 Instances of this class will have missing attributes for metadata that
28 --
29 2.26.2