From 3856debfede50480eb1308365d157285dfa178d8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 18 Mar 2013 23:22:32 -0700 Subject: [PATCH] cmp_sort_key: reference functools.cmp_to_key() --- pym/portage/util/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pym/portage/util/__init__.py b/pym/portage/util/__init__.py index 32875695b..1736ad648 100644 --- a/pym/portage/util/__init__.py +++ b/pym/portage/util/__init__.py @@ -848,6 +848,9 @@ class cmp_sort_key(object): list.sort(), making it easier to port code for python-3.0 compatibility. It works by generating key objects which use the given cmp function to implement their __lt__ method. + + Beginning with Python 2.7 and 3.2, equivalent functionality is provided + by functools.cmp_to_key(). """ __slots__ = ("_cmp_func",) -- 2.26.2