From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 5FB2938A98F5; Tue, 11 Jan 2022 13:30:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5FB2938A98F5 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-6475] check-MAINTAINERS.py: use sys.argv[1] X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/heads/master X-Git-Oldrev: 265d3e1a4e3d6c71d354f859302f023dc2d33f62 X-Git-Newrev: 438f2a24a4f02a3128847f7186bfcb56e7a60d83 Message-Id: <20220111133010.5FB2938A98F5@sourceware.org> Date: Tue, 11 Jan 2022 13:30:10 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2022 13:30:10 -0000 https://gcc.gnu.org/g:438f2a24a4f02a3128847f7186bfcb56e7a60d83 commit r12-6475-g438f2a24a4f02a3128847f7186bfcb56e7a60d83 Author: Martin Liska Date: Tue Jan 11 14:29:25 2022 +0100 check-MAINTAINERS.py: use sys.argv[1] contrib/ChangeLog: * check-MAINTAINERS.py: Use sys.argv[1] as path to MAINTAINERS. Diff: --- contrib/check-MAINTAINERS.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/check-MAINTAINERS.py b/contrib/check-MAINTAINERS.py index ca7bb291282..08fc8e48fd5 100755 --- a/contrib/check-MAINTAINERS.py +++ b/contrib/check-MAINTAINERS.py @@ -82,7 +82,7 @@ def check_group(name, lines): print(f'{name} are fine!') -lines = open('MAINTAINERS').read().splitlines() +lines = open(sys.argv[1]).read().splitlines() needle = 'Global Reviewers' lines = list(dropwhile(lambda x: x.strip() != needle, lines))