From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DAB6A138335 for ; Mon, 16 Dec 2019 17:48:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C9675E0936; Mon, 16 Dec 2019 17:48:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B2C81E092C for ; Mon, 16 Dec 2019 17:48:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B5B3734D8C9 for ; Mon, 16 Dec 2019 17:48:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C9AF2906 for ; Mon, 16 Dec 2019 17:48:26 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1576501991.f88425ee9c7b0d1586d770c00bba35327fbb55da.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: support/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: support/fc_sort.py X-VCS-Directories: support/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: f88425ee9c7b0d1586d770c00bba35327fbb55da X-VCS-Branch: master Date: Mon, 16 Dec 2019 17:48:26 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9dea755a-1cec-4b77-aa82-4131f7058be1 X-Archives-Hash: 818cb89fea7165027fed1b4c1ab38f52 commit: f88425ee9c7b0d1586d770c00bba35327fbb55da Author: Chris PeBenito ieee org> AuthorDate: Tue Oct 8 19:45:27 2019 +0000 Commit: Jason Zaman gentoo org> CommitDate: Mon Dec 16 13:13:11 2019 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=f88425ee fc_sort.py: Use "==" for comparing integers. "is" is for testing two references are the same object. The fact that this worked is specific to the Python implementation. Signed-off-by: Chris PeBenito ieee.org> Signed-off-by: Jason Zaman gentoo.org> support/fc_sort.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/fc_sort.py b/support/fc_sort.py index 9e38a9eb..3a35553b 100644 --- a/support/fc_sort.py +++ b/support/fc_sort.py @@ -108,7 +108,7 @@ class FileContext(): return 0 def __lt__(self, other): - return self._compare(self, other) is -1 + return self._compare(self, other) == -1 def __str__(self): if self.file_type: