diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-11 03:35:50 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-11 03:35:50 +0000 |
commit | 108c7244234ae459e60bb6eea3800958cef4dc25 (patch) | |
tree | 06831d72d9b5d2f8d77513f5e7afc3394b99819f | |
parent | 388fdc5e852349758b81115dfd79e1f852cf19be (diff) | |
download | portage-108c7244234ae459e60bb6eea3800958cef4dc25.tar.gz portage-108c7244234ae459e60bb6eea3800958cef4dc25.tar.bz2 portage-108c7244234ae459e60bb6eea3800958cef4dc25.zip |
Use portage.util.cmp_sort_key for python-3.0 compatibility. (trunk r12572)
svn path=/main/branches/2.1.6/; revision=12853
-rw-r--r-- | pym/portage/dbapi/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/dbapi/__init__.py b/pym/portage/dbapi/__init__.py index cdae94573..e5db363d7 100644 --- a/pym/portage/dbapi/__init__.py +++ b/pym/portage/dbapi/__init__.py @@ -9,7 +9,7 @@ import re from portage.dep import match_from_list from portage.locks import unlockfile from portage.output import colorize -from portage.util import writemsg +from portage.util import writemsg, cmp_sort_key from portage import auxdbkeys, dep_expand from portage.versions import catpkgsplit, pkgcmp @@ -62,7 +62,7 @@ class dbapi(object): mysplit = tuple(catpkgsplit(cpv)[1:]) str_map[mysplit] = cpv cpv_list[i] = mysplit - cpv_list.sort(pkgcmp) + cpv_list.sort(key=cmp_sort_key(pkgcmp)) for i, mysplit in enumerate(cpv_list): cpv_list[i] = str_map[mysplit] |