From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id CF24C1381F3 for ; Thu, 10 Oct 2013 00:36:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CCE04E0962; Thu, 10 Oct 2013 00:35:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 65D14E0962 for ; Thu, 10 Oct 2013 00:35:58 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8046633BDD3 for ; Thu, 10 Oct 2013 00:35:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id F328EE5460 for ; Thu, 10 Oct 2013 00:35:55 +0000 (UTC) From: "Devan Franchini" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Devan Franchini" Message-ID: <1381364720.547419993a5d73f103c2729745cc5f2f0dbe1d16.twitch153@gentoo> Subject: [gentoo-commits] proj/webapp-config:master commit in: WebappConfig/ X-VCS-Repository: proj/webapp-config X-VCS-Files: WebappConfig/db.py X-VCS-Directories: WebappConfig/ X-VCS-Committer: twitch153 X-VCS-Committer-Name: Devan Franchini X-VCS-Revision: 547419993a5d73f103c2729745cc5f2f0dbe1d16 X-VCS-Branch: master Date: Thu, 10 Oct 2013 00:35:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a93f2fdf-c2e7-4219-abd2-f217492040a5 X-Archives-Hash: 5b7e06700a3ccc45d4cc027b9edaef5a commit: 547419993a5d73f103c2729745cc5f2f0dbe1d16 Author: Devan Franchini hotmail com> AuthorDate: Thu Oct 10 00:25:20 2013 +0000 Commit: Devan Franchini gentoo org> CommitDate: Thu Oct 10 00:25:20 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/webapp-config.git;a=commit;h=54741999 WebappConfig/db.py: Converts keys.packages.keys() into a list. When webapp-cleaner -C on python3.2+ an error will arise which says that 'dict_keys' object has no attribute 'sort'. To fix this issue we set the keys to a list. This allows the keys to be properly sorted without error. Tested in python3.2 and python2.7. --- WebappConfig/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebappConfig/db.py b/WebappConfig/db.py index 8db20fc..03449a3 100644 --- a/WebappConfig/db.py +++ b/WebappConfig/db.py @@ -673,7 +673,7 @@ class WebappSource(AppHierarchy): if not packages: OUT.die('No packages found!') - keys = packages.keys() + keys = list(packages.keys()) keys.sort() OUT.debug('Check for unused web applications', 7)