From d27a9d9c35310717e253da136463222a61db1473 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 28 Aug 2024 16:50:09 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- feedparser/encodings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/feedparser/encodings.py b/feedparser/encodings.py index c699fe4c..da8f0a31 100644 --- a/feedparser/encodings.py +++ b/feedparser/encodings.py @@ -623,9 +623,9 @@ def read(self, size=-1): if self.offset < len(self.prefix): if size < 0: - chunk = self.prefix[self.offset:] + chunk = self.prefix[self.offset :] else: - chunk = self.prefix[self.offset:self.offset + size] + chunk = self.prefix[self.offset : self.offset + size] size -= len(chunk) buffer += chunk self.offset += len(chunk)