mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
ruff: Fix PIE808 Unnecessary start argument in range.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 81bd63cb46)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user