From 5900c6bf92890e5697f35ba3a0a9ac2a7e731071 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Mon, 21 Jul 2025 12:44:05 +0200 Subject: [PATCH] fix ruff complains about python imperfections --- tests/http/scorecard.py | 2 +- tests/http/testenv/dante.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/http/scorecard.py b/tests/http/scorecard.py index 70cfc62739..8e0e6ce5f8 100644 --- a/tests/http/scorecard.py +++ b/tests/http/scorecard.py @@ -676,7 +676,7 @@ def run_score(args, protocol): sockd = None socks_args = None if args.socks4 and args.socks5: - raise ScoreCardError(f'unable to run --socks4 and --socks5 together') + raise ScoreCardError('unable to run --socks4 and --socks5 together') elif args.socks4 or args.socks5: sockd = Dante(env=env) if sockd: diff --git a/tests/http/testenv/dante.py b/tests/http/testenv/dante.py index ba2f61ac61..995dce6a61 100644 --- a/tests/http/testenv/dante.py +++ b/tests/http/testenv/dante.py @@ -29,8 +29,7 @@ import os import socket import subprocess -from datetime import datetime, timedelta -from typing import List, Dict +from typing import Dict from .env import Env from .ports import alloc_ports_and_do