1 |
commit: 7931286fbf5d39881c95c188203283d9bf55b8bd |
2 |
Author: Sebastian Pipping <sebastian <AT> pipping <DOT> org> |
3 |
AuthorDate: Sun Apr 8 05:59:25 2012 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 8 05:59:30 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/overlint.git;a=commit;h=7931286f |
7 |
|
8 |
Turn sorted(x, cmp=y) into sorted(x, key=f(y)) for Python 3.2 compatibility (bug #411135) |
9 |
|
10 |
Reported by Chris Mayo |
11 |
|
12 |
--- |
13 |
overlint/cli.py | 2 +- |
14 |
1 files changed, 1 insertions(+), 1 deletions(-) |
15 |
|
16 |
diff --git a/overlint/cli.py b/overlint/cli.py |
17 |
index 4ba402c..edfe6ac 100644 |
18 |
--- a/overlint/cli.py |
19 |
+++ b/overlint/cli.py |
20 |
@@ -94,7 +94,7 @@ def find_ebuild_changes(category_package, overlay_path, gentoo_versions, overlay |
21 |
|
22 |
|
23 |
def sorted_versions(versions): |
24 |
- return sorted(versions, cmp=portage.vercmp) |
25 |
+ return sorted(versions, key=portage.versions.cmp_sort_key(portage.vercmp)) |
26 |
|
27 |
|
28 |
def dump_tree(tree, title): |