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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DBF1B15803E for ; Tue, 2 Jan 2024 18:03:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 956242BC03D; Tue, 2 Jan 2024 18:03:20 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6854C2BC05E for ; Tue, 2 Jan 2024 18:03:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 39490341214 for ; Tue, 2 Jan 2024 18:03:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 783AA1256 for ; Tue, 2 Jan 2024 18:03:17 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1704217746.c899a5a007c28c8b9005d142f8c7b539e097d5b3.vapier@gentoo> Subject: [gentoo-commits] proj/pax-utils:master commit in: / X-VCS-Repository: proj/pax-utils X-VCS-Files: lddtree.py X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: c899a5a007c28c8b9005d142f8c7b539e097d5b3 X-VCS-Branch: master Date: Tue, 2 Jan 2024 18:03:17 +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: c79343ce-2e8f-4930-a28f-09f0f2c5c9ef X-Archives-Hash: d12a3c16a01dbd73730a0440c4e939c7 commit: c899a5a007c28c8b9005d142f8c7b539e097d5b3 Author: Mike Frysinger chromium org> AuthorDate: Tue Jan 2 17:49:06 2024 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Tue Jan 2 17:49:06 2024 +0000 URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=c899a5a0 lddtree: disable pyelftools pylint import errors Since pyelftools isn't commonly installed, disable the pylint check by default. Signed-off-by: Mike Frysinger chromium.org> Signed-off-by: Mike Frysinger gentoo.org> lddtree.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lddtree.py b/lddtree.py index 247e9db..70d755c 100755 --- a/lddtree.py +++ b/lddtree.py @@ -53,6 +53,8 @@ from typing import Any, Dict, Iterable, List, Optional, Tuple, Union, cast assert sys.version_info >= (3, 6), f"Python 3.6+ required, but found {sys.version}" +# Disable import errors for all 3rd party modules. +# pylint: disable=import-error try: import argcomplete except ImportError: @@ -61,6 +63,8 @@ except ImportError: from elftools.common import exceptions from elftools.elf.elffile import ELFFile +# pylint: enable=import-error + def warn(msg: Any, prefix: Optional[str] = "warning") -> None: """Write |msg| to stderr with a |prefix| before it"""