From 57d8fa0b72c0f88f1e7eece8fb0bd5a2a0d8d0ea Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Fri, 20 Sep 2024 08:23:30 -0700 Subject: [PATCH] Follow idiomatic Python coding style (#9763) --- update-since-todo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/update-since-todo.py b/update-since-todo.py index 3b0241a9928f..38563e6ca488 100755 --- a/update-since-todo.py +++ b/update-since-todo.py @@ -102,8 +102,8 @@ def analyze_files(commits_and_tags, dry_run=False): "*.js", ] - runningInCI = os.environ.get("CI", "false") == "true" - if runningInCI: + is_ci = "CI" in os.environ + if is_ci: print("
Detailed output\n\n") with subprocess.Popen(cmd, stdout=subprocess.PIPE) as proc: for line in io.TextIOWrapper(proc.stdout): @@ -113,7 +113,7 @@ def analyze_files(commits_and_tags, dry_run=False): if retcode: raise subprocess.CalledProcessError(retcode, cmd) print() - if runningInCI: + if is_ci: print("
\n")