From patchwork Thu Jan 31 21:07:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Iooss X-Patchwork-Id: 10791495 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CA190922 for ; Thu, 31 Jan 2019 21:08:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C02B9316C1 for ; Thu, 31 Jan 2019 21:08:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B1C103190D; Thu, 31 Jan 2019 21:08:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EBC6E316C1 for ; Thu, 31 Jan 2019 21:08:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726798AbfAaVIN (ORCPT ); Thu, 31 Jan 2019 16:08:13 -0500 Received: from mx1.polytechnique.org ([129.104.30.34]:49259 "EHLO mx1.polytechnique.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725775AbfAaVIN (ORCPT ); Thu, 31 Jan 2019 16:08:13 -0500 Received: from localhost.localdomain (89-156-252-9.rev.numericable.fr [89.156.252.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 9834B5646AB for ; Thu, 31 Jan 2019 22:08:10 +0100 (CET) From: Nicolas Iooss To: selinux@vger.kernel.org Subject: [PATCH 0/3] Support flake8 version 3.7 Date: Thu, 31 Jan 2019 22:07:50 +0100 Message-Id: <20190131210753.11221-1-nicolas.iooss@m4x.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Thu Jan 31 22:08:10 2019 +0100 (CET)) X-Org-Mail: nicolas.iooss.2010@polytechnique.org Sender: selinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP flake8 3.7.0, 3.7.1, 3.7.2 and 3.7.3 were released on 2019-01-29 and 2019-01-30 (cf. http://flake8.pycqa.org/en/latest/release-notes/3.7.0.html). These releases introduced new warnings, which broke building with Travis-CI (cf. https://travis-ci.org/fishilico/selinux/builds/487098420). Fix Travis-CI's builds by fixing the warnings that are now reported. The first two commits are related to coding style and the third one is a fix for an actual bug. Nicolas Iooss (3): python: reindent lines that were over-indented python: use == or != when comparing a variable with a string or a integer python/sepolicy: fix variable name python/semanage/semanage | 118 ++++++------ python/sepolgen/src/sepolgen/output.py | 6 +- python/sepolgen/src/sepolgen/refparser.py | 2 +- python/sepolgen/src/sepolgen/yacc.py | 214 +++++++++++----------- python/sepolicy/sepolicy/generate.py | 4 +- python/sepolicy/sepolicy/gui.py | 2 +- python/sepolicy/sepolicy/interface.py | 8 +- python/sepolicy/sepolicy/manpage.py | 4 +- 8 files changed, 179 insertions(+), 179 deletions(-) Acked-by: Petr Lautrbach