Skip to content

Commit

Permalink
Update to v0.10 and some minor grammar fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lonami committed Jun 3, 2017
1 parent b472421 commit 7acfd0c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion telethon/network/authenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@

def do_authentication(transport):
"""Executes the authentication process with the Telegram servers.
If no error is rose, returns both the authorization key and the time offset"""
If no error is raised, returns both the authorization key and the
time offset.
"""
sender = MtProtoPlainSender(transport)
sender.connect()

Expand Down
8 changes: 4 additions & 4 deletions telethon/telegram_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
class TelegramClient:

# Current TelegramClient version
__version__ = '0.9.1'
__version__ = '0.10'

# region Initialization

Expand Down Expand Up @@ -228,7 +228,7 @@ def _get_exported_sender(self, dc_id, init_connection=False):
current authorization is exported to the new DC so that
it can be used there, and the connection is initialized.
If after using the sender a ConnectionResetError is rose,
If after using the sender a ConnectionResetError is raised,
this method should be called again with init_connection=True
in order to perform the reconnection."""
# Thanks badoualy/kotlogram on /telegram/api/DefaultTelegramClient.kt
Expand Down Expand Up @@ -350,8 +350,8 @@ def invoke_on_dc(self, request, dc_id,
"""Invokes the given request on a different DC
by making use of the exported MtProtoSenders.
If 'reconnect=True', then the a reconnection will be performed
and ConnectionResetError will be rose if it occurs a second time.
If 'reconnect=True', then the a reconnection will be performed and
ConnectionResetError will be raised if it occurs a second time.
"""
try:
sender = self._get_exported_sender(
Expand Down
2 changes: 1 addition & 1 deletion telethon/utils/tl_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_extension(media):

def get_input_peer(entity):
"""Gets the input peer for the given "entity" (user, chat or channel).
A ValueError is rose if the given entity isn't a supported type."""
A ValueError is raised if the given entity isn't a supported type."""
if (isinstance(entity, InputPeerUser) or
isinstance(entity, InputPeerChat) or
isinstance(entity, InputPeerChannel)):
Expand Down

1 comment on commit 7acfd0c

@Lonami
Copy link
Member Author

@Lonami Lonami commented on 7acfd0c Jun 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verb conjugation is classified as "grammar", right? I would have swore that 'rose' was the right way to write 'raised', because I thought 'raised' was wrong. Oh well, ¯\_(ツ)_/¯

Please sign in to comment.