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 0FFEA1381F3 for ; Fri, 18 Oct 2013 03:39:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9021EE0A45; Fri, 18 Oct 2013 03:39:53 +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 29B9AE0A45 for ; Fri, 18 Oct 2013 03:39:53 +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 2F06133EF52 for ; Fri, 18 Oct 2013 03:39:52 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 925ABE5308 for ; Fri, 18 Oct 2013 03:39:49 +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: <1382067545.f5855edeefb5cdb467e52ba14f1b40947a8b0bb5.twitch153@gentoo> Subject: [gentoo-commits] proj/webapp-config:experimental 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: f5855edeefb5cdb467e52ba14f1b40947a8b0bb5 X-VCS-Branch: experimental Date: Fri, 18 Oct 2013 03:39:49 +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: aa6b5b4c-0d50-4d12-ae53-52ea5f672d3a X-Archives-Hash: 9d44370b3bbcb8ee96b452e29eee6abd commit: f5855edeefb5cdb467e52ba14f1b40947a8b0bb5 Author: Devan Franchini gentoo org> AuthorDate: Fri Oct 18 03:39:05 2013 +0000 Commit: Devan Franchini gentoo org> CommitDate: Fri Oct 18 03:39:05 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/webapp-config.git;a=commit;h=f5855ede WebappConfig/db.py converts keys dictionary to sorted list. --- WebappConfig/db.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/WebappConfig/db.py b/WebappConfig/db.py index 3ac5f2c..11e5dae 100644 --- a/WebappConfig/db.py +++ b/WebappConfig/db.py @@ -441,8 +441,7 @@ class WebappDB(AppHierarchy): if not loc and self.__v: OUT.die('No virtual installs found!') - keys = list(loc.keys()) - keys.sort() + keys = sorted(loc) for j in keys: # The verbose output is meant to be readable for the user @@ -673,8 +672,7 @@ class WebappSource(AppHierarchy): if not packages: OUT.die('No packages found!') - keys = packages.keys() - keys.sort() + keys = sorted(packages) OUT.debug('Check for unused web applications', 7)