From 1159f87d6ca48a9ca775417299ed576df238ef20 Mon Sep 17 00:00:00 2001 From: Denis Averin Date: Tue, 27 Feb 2024 17:58:07 +0700 Subject: [PATCH] print to stderr --- scripts/check-urls.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/check-urls.py b/scripts/check-urls.py index a6f161c..48484fd 100644 --- a/scripts/check-urls.py +++ b/scripts/check-urls.py @@ -218,8 +218,7 @@ def main(files): checker.join() if BROKEN_URLS: - # Flush stdout buffer before print to stderr - print("Errors:", flush=True) + print("Errors:", file=sys.stderr, flush=True) for url, files in BROKEN_URLS.items(): print("BROKEN URL: '%s' in files: %s" % (url, ", ".join(files)), file=sys.stderr, flush=True) if BROKEN_URLS: