fix small typos and errors

This commit is contained in:
painor 2019-11-09 23:20:44 +01:00
parent 4a1310dc21
commit e90bf26786
4 changed files with 4 additions and 4 deletions

View File

@ -126,7 +126,7 @@ def parse(html: str) -> Tuple[str, List[TypeMessageEntity]]:
Parses the given HTML message and returns its stripped representation
plus a list of the MessageEntity's that were found.
:param message: the message with HTML to be parsed.
:param html: the message with HTML to be parsed.
:return: a tuple consisting of (clean message, [message entities]).
"""
if not html:

View File

@ -254,7 +254,7 @@ class PacketCodec(abc.ABC):
"""
This attribute should be re-defined by subclass to define if some
"magic bytes" should be sent to server right after conection is made to
"magic bytes" should be sent to server right after connection is made to
signal which protocol will be used
"""
tag = None

View File

@ -25,7 +25,7 @@ class ObfuscatedIO:
random = os.urandom(64)
if (random[0] != 0xef and
random[:4] not in keywords and
random[4:4] != b'\0\0\0\0'):
random[4:8] != b'\0\0\0\0'):
break
random = bytearray(random)

View File

@ -39,7 +39,7 @@ class AdminLogEvent:
@property
def date(self):
"""
The date when this event occured.
The date when this event occurred.
"""
return self.original.date