From 91818a73bf14893e0770de76e2d0b165aeab1482 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 13 Dec 2022 03:19:11 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- handlers/httphandlers/main_handler.py | 2 +- objects/Player.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/handlers/httphandlers/main_handler.py b/handlers/httphandlers/main_handler.py index 743b261..f5a53db 100755 --- a/handlers/httphandlers/main_handler.py +++ b/handlers/httphandlers/main_handler.py @@ -53,7 +53,7 @@ async def main_handler(request: Request): # packets recieve with memoryview(await request.body()) as packets: raw_bytes = KurisoPacketReader(packets) - response = bytes() + response = b'' while not raw_bytes.EOF(): packet_id = raw_bytes.read_u_int_16() _ = raw_bytes.read_int_8() # empty byte diff --git a/objects/Player.py b/objects/Player.py index e2cc5bd..3ea3d23 100755 --- a/objects/Player.py +++ b/objects/Player.py @@ -126,7 +126,7 @@ def __init__( self._match: Optional["Match"] = None - self.queue = bytes() # main thing + self.queue = b'' # main thing self.login_time = int(time.time()) self.last_packet_unix = int(time.time()) @@ -534,7 +534,7 @@ def enqueue(self, b: bytes) -> None: def dequeue(self) -> Optional[bytes]: if self.queue: data = self.queue - self.queue = bytes() + self.queue = b'' return data return b""