Skip to content

Commit

Permalink
main_async: "" is not needed in print("", file=...)
Browse files Browse the repository at this point in the history
  • Loading branch information
wildekat committed Jun 17, 2024
1 parent a1bee3d commit 480e2cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tor_relay_scanner/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ async def main_async(args):
f"\nTry {ntry+1}/{numtries}, We'll test the following {relaynum} random relays:", file=sys.stderr)
for relay in test_relays:
print(relay, file=sys.stderr)
print("", file=sys.stderr)
print(file=sys.stderr)

if ntry:
print(f"Found {len(working_relays)} good relays so far. Test {ntry+1}/{numtries} started…", file=sys.stderr)
Expand All @@ -201,7 +201,7 @@ async def main_async(args):
for relay in test_relays:
tasks.append(asyncio.create_task(relay.check(TIMEOUT)))
fin = await asyncio.gather(*tasks)
print("", file=sys.stderr)
print(file=sys.stderr)

print("The following relays are reachable this try:", file=sys.stderr)
for relay in test_relays:
Expand All @@ -214,7 +214,7 @@ async def main_async(args):
print("No relays are reachable this try.", file=sys.stderr)

if ntry > 1:
print("", file=sys.stderr)
print(file=sys.stderr)
print("All reachable relays:", file=sys.stderr)
for relay in working_relays:
if relay:
Expand Down

0 comments on commit 480e2cf

Please sign in to comment.