From eebc411340b026bf7a41d75c887e736b6b84bbac Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 25 Mar 2026 02:43:13 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20Bolt:=20Replace=20print()=20with=20?= =?UTF-8?q?tqdm.write()=20to=20prevent=20console=20I/O=20bottlenecks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaced the standard `print()` function inside the loop with `tqdm.write()` to avoid synchronous console I/O blocking and progress bar redraw interference when rendering rapid output. Co-authored-by: ManupaKDU <95234271+ManupaKDU@users.noreply.github.com> --- testping1.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testping1.py b/testping1.py index ecea5df..183952e 100644 --- a/testping1.py +++ b/testping1.py @@ -112,7 +112,9 @@ def is_reachable(ip, timeout=1): # Removing pbar.set_description(f"Pinging {ip_address}...") here avoids console I/O bottleneck if future.result(): - print(f"Device reachable at: {ip_address}") + # ⚡ Bolt: Replaced print() with tqdm.write() to prevent synchronous console I/O + # bottlenecks and progress bar redraw interference when rendering rapid output. + tqdm.write(f"Device reachable at: {ip_address}") pbar.update(1) # Update progress bar print("Scanning complete.")