ruff: Fix PIE808 Unnecessary start argument in range.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-09-01 14:05:08 -07:00
committed by Anders Kaseorg
parent 9cff7e14c4
commit 81bd63cb46
12 changed files with 25 additions and 25 deletions

View File

@@ -9,7 +9,7 @@ class UnixStreamHTTPConnection(HTTPConnection):
def connect(self) -> None:
self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
connected = False
for i in range(0, 2):
for i in range(2):
try:
self.sock.connect(self.host)
connected = True

View File

@@ -63,7 +63,7 @@ def parser() -> argparse.ArgumentParser:
"-H",
help="Estimated minimum number of hours; includes previous log file, if estimated less than this",
type=int,
choices=range(0, 24),
choices=range(24),
default=3,
)
log_selection.add_argument(