File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -542,16 +542,16 @@ async def send_packet(
542542 raise RCONSendError (SEND_ERROR ) from exc
543543
544544 @staticmethod
545- async def receive_exactly (rcon_socket : "anyio.abc.SocketStream" , size : int ) -> bytes :
545+ async def receive_exactly (
546+ rcon_socket : "anyio.abc.SocketStream" , size : int
547+ ) -> bytes :
546548 """Receive exactly size bytes
547549
548550 On socket closure: raises anyio.EndOfStream
549551 """
550552 buffer = bytearray ()
551553 while len (buffer ) < size :
552- buffer .extend (
553- await rcon_socket .receive (min (size - len (buffer ), RECV_SIZE ))
554- )
554+ buffer .extend (await rcon_socket .receive (min (size - len (buffer ), RECV_SIZE )))
555555 return buffer
556556
557557 async def receive_packet (self ) -> RCONMessage :
You can’t perform that action at this time.
0 commit comments