mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
ruff: Fix PIE808 Unnecessary start
argument in range
.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Anders Kaseorg
parent
9cff7e14c4
commit
81bd63cb46
@@ -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
|
||||
|
@@ -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(
|
||||
|
Reference in New Issue
Block a user