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 74B67138350 for ; Thu, 26 Mar 2020 17:09:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C81FE097D; Thu, 26 Mar 2020 17:09:51 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 86EB2E097D for ; Thu, 26 Mar 2020 17:09:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 8812634F187 for ; Thu, 26 Mar 2020 17:09:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 86B7A10A for ; Thu, 26 Mar 2020 17:09:48 +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: <1585242542.36a01e9729cb7c54ce0c0c91095cf0b01c70f656.vapier@gentoo> Subject: [gentoo-commits] proj/pax-utils:master commit in: / X-VCS-Repository: proj/pax-utils X-VCS-Files: .pylintrc lddtree.py X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 36a01e9729cb7c54ce0c0c91095cf0b01c70f656 X-VCS-Branch: master Date: Thu, 26 Mar 2020 17:09:48 +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: dfde944b-cc85-41d2-b1a8-c082ea393461 X-Archives-Hash: 0fc1dd141c447b4b52c5ccd835eefee0 commit: 36a01e9729cb7c54ce0c0c91095cf0b01c70f656 Author: Mike Frysinger chromium org> AuthorDate: Thu Mar 26 16:55:52 2020 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Thu Mar 26 17:09:02 2020 +0000 URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=36a01e97 pylintrc: enable more warnings Signed-off-by: Mike Frysinger gentoo.org> .pylintrc | 27 +++++++++++++++++++++++++++ lddtree.py | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/.pylintrc b/.pylintrc index b58abfa..cf1379d 100644 --- a/.pylintrc +++ b/.pylintrc @@ -1,3 +1,16 @@ +[MASTER] +# List of plugins (as comma separated values of python modules names) to load, +# usually to register additional checkers. +load-plugins= + pylint.extensions.bad_builtin, + pylint.extensions.check_elif, + pylint.extensions.docstyle, + pylint.extensions.emptystring, + pylint.extensions.overlapping_exceptions, + pylint.extensions.redefined_variable_type, + +jobs=0 + [MESSAGES CONTROL] # Disable the message, report, category or checker with the given id(s). You # can either give multiple identifier separated by comma (,) or put this option @@ -19,11 +32,20 @@ disable= [REPORTS] reports=no +score=no [FORMAT] max-line-length=80 indent-string=' ' +[BASIC] +bad-functions= + exit, + filter, + input, + map, + quit, + [SIMILARITIES] min-similarity-lines=20 @@ -32,3 +54,8 @@ dummy-variables-rgx=_ [DESIGN] max-parents=10 + +[IMPORTS] +deprecated-modules= + mox, + optparse, diff --git a/lddtree.py b/lddtree.py index 240418e..f453d13 100755 --- a/lddtree.py +++ b/lddtree.py @@ -195,7 +195,7 @@ def ParseLdPaths(str_ldpaths, root='', path=None): """ ldpaths = [] for ldpath in str_ldpaths.split(':'): - if ldpath == '': + if not ldpath: # The ldso treats "" paths as $PWD. ldpath = os.getcwd() elif '$ORIGIN' in ldpath: