Fixed license error

This commit is contained in:
2026-02-23 22:37:13 +01:00
parent 8a21c2e4f0
commit 2f467a4128
6 changed files with 60 additions and 46 deletions
+4 -4
View File
@@ -33,7 +33,7 @@ class MessageFormatError(Exception): ...
async def sendmsg(m: bytes, writer: asyncio.StreamWriter, aesgcm: AESGCM = None, aesnonce: bytes = None, send_headers: bool = True, _content_length: int = None, start_byte: bytes = _MSG_START_BYTE):
'''
Sends a message.
:param m: The message
:type m: bytes
:param writer: The writer
@@ -66,7 +66,7 @@ async def sendmsg(m: bytes, writer: asyncio.StreamWriter, aesgcm: AESGCM = None,
async def readmsg(reader: asyncio.StreamReader, aesgcm: AESGCM = None, aesnonce: bytes = None, start_byte: bytes = _MSG_START_BYTE) -> bytes:
'''
Receives a message.
:param reader: The reader
:type reader: asyncio.StreamReader
:param aesgcm: AESGCM
@@ -93,7 +93,7 @@ async def readmsg(reader: asyncio.StreamReader, aesgcm: AESGCM = None, aesnonce:
def pack_fields(*fields: bytes) -> bytes:
'''
Packs the fields into a compact bytestring.
:param fields: The fields
:type fields: bytes
@@ -110,7 +110,7 @@ def pack_fields(*fields: bytes) -> bytes:
def unpack_fields(raw: bytes) -> Sequence[bytes]:
'''
Unpacks the field from a bytestring.
:param raw: The packed fields
:type raw: bytes