From 643b22983d2d47004fc6a938b84a87e4f6318cb1 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Thu, 29 Aug 2024 16:04:40 +0200 Subject: [PATCH] fixup! csfilter-kfp: install a simple man page Simplify the call to `isatty()`. --- src/csfilter-kfp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/csfilter-kfp b/src/csfilter-kfp index 2a94888c..bf3169a1 100755 --- a/src/csfilter-kfp +++ b/src/csfilter-kfp @@ -198,7 +198,7 @@ def main(): help="file to store all excluded findings to") parser.add_argument( - "--json-output", action="store_true", default=(not os.isatty(sys.stdout.fileno())), + "--json-output", action="store_true", default=(not sys.stdout.isatty()), help="produce JSON output (default if stdout is not connected to a terminal)") parser.add_argument(