Skip to content

Commit a744d3a

Browse files
committed
Fix typos in modules
1 parent 9f67a92 commit a744d3a

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

tgbox/errors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class RemoteBoxInaccessible(TgboxException):
6262
"""The RemoteBox you try to use is inaccessible"""
6363

6464
class NotEnoughRights(TgboxException):
65-
"""You don't have rigths for this action"""
65+
"""You don't have rights for this action"""
6666

6767
class NoPlaceLeftForMetadata(TgboxException):
6868
"""Your edited metadata overflow Telegram caption limit"""
@@ -73,7 +73,7 @@ class AlreadyImported(TgboxException):
7373
"""LocalBox have file with same ID"""
7474

7575
class NotImported(TgboxException):
76-
"""The file you try to retrieve wasn\'t imported yet"""
76+
"""The file you try to retrieve wasn't imported yet"""
7777

7878
class FingerprintExists(TgboxException):
7979
"""File with the same file path already uploaded to the Box"""

tgbox/keys.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def __eq__(self, other) -> bool:
8080

8181
@property
8282
def phrase(self) -> bytes:
83-
"""Returns currrent raw phrase"""
83+
"""Returns current raw phrase"""
8484
return self._phrase
8585

8686
@classmethod
@@ -217,7 +217,7 @@ def encode(self) -> str:
217217
return prefix + urlsafe_b64encode(self._key).decode()
218218

219219
def hex(self) -> str:
220-
"""Returns key in hex represenation"""
220+
"""Returns key in hex representation"""
221221
return self._key.hex()
222222

223223
class BaseKey(Key):
@@ -231,7 +231,7 @@ def __init__(self, key: bytes):
231231

232232
class MainKey(Key):
233233
"""
234-
``MainKey`` may be reffered as "Box key". This
234+
``MainKey`` may be referred as "Box key". This
235235
key encrypts all box data and used in ``FileKey``
236236
creation. It's one of your most important ``Key``,
237237
as leakage of it will result in compromising all
@@ -376,7 +376,7 @@ def make_mainkey(basekey: BaseKey, box_salt: BoxSalt) -> MainKey:
376376
377377
Arguments:
378378
basekey (``bytes``):
379-
Key which you recieved with scrypt
379+
Key which you received with scrypt
380380
function or any other key you want.
381381
382382
box_salt (``BoxSalt``):
@@ -455,7 +455,7 @@ def make_requestkey(key: Union[MainKey, BaseKey],
455455
is called ``ShareKey``. Use help on ``make_sharekey``.).
456456
457457
B sends received ``RequestKey`` to A. A makes ``ShareKey``
458-
and sends it to B. B calls ``get_importkey`` and recieves the
458+
and sends it to B. B calls ``get_importkey`` and receives the
459459
``ImportKey``, which is, in fact, a ``FileKey``.
460460
461461
No one except Alice and Bob will have ``FileKey``. If Alice want
@@ -525,7 +525,7 @@ def make_sharekey(
525525
You may want to know what is ``RequestKey`` before reading
526526
this. Please, run help on ``make_requestkey`` to get info.
527527
528-
Alice recieved ``RequestKey`` from Bob. But what she should do
528+
Alice received ``RequestKey`` from Bob. But what she should do
529529
next? As reqkey is just EC-pubkey, she wants to make a *shared
530530
secret key*. A makes her own privkey, with ``sha256(mainkey
531531
+ sha256(salt + requestkey))`` & initializes ECDH with B pubkey

tgbox/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
class _TypeList:
5151
"""
52-
This is cutted version of ``list()`` that
52+
This is small version of ``list()`` that
5353
checks type on ``.append(...)``.
5454
5555
You can specify multiply types with

0 commit comments

Comments
 (0)