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:
Anders Kaseorg
2023-09-01 14:05:08 -07:00
parent e2dcea1664
commit 7c50e1a40e
15 changed files with 28 additions and 28 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