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: