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""