From f2c1cedbba378b7d325b7aa0782b76132912dbaf Mon Sep 17 00:00:00 2001 From: Master-X <153791429+MasterKey-Pro@users.noreply.github.com> Date: Wed, 8 Jan 2025 18:05:10 +0800 Subject: [PATCH] Update fasthttp.py fix: fasthttp.py to comply with PEP 8 --- locust/contrib/fasthttp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locust/contrib/fasthttp.py b/locust/contrib/fasthttp.py index c502d1ec5c..d2fd503773 100644 --- a/locust/contrib/fasthttp.py +++ b/locust/contrib/fasthttp.py @@ -301,7 +301,7 @@ def get(self, url: str, **kwargs: Unpack[RESTKwargs]) -> ResponseContextManager def iter_lines(self, url: str, **kwargs) -> Generator[str, None, None]: """Sends a iter_lines request""" response = self.request("GET", url, stream=True, **kwargs) - response.raise_for_status() # Check for HTTP errors + response.raise_for_status() buffer = '' for chunk in response.iter_content(chunk_size=1024): buffer += chunk.decode('utf-8')