Fixed license error
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user