Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 6, 2022
1 parent 86ea388 commit 7201006
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion handlers/httphandlers/main_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions objects/Player.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down Expand Up @@ -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""

0 comments on commit 7201006

Please sign in to comment.