Fixes: 5e9fe0f2a ("Eliminate basestring/long/_unicode py3 compat") Signed-off-by: Matt Turner <matts...@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 -- 2.26.2