mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-29 15:49:02 +01:00
Fix class declaration according to consistency. (#235)
This commit is contained in:
parent
e179b27f57
commit
a9b305edd0
3 changed files with 3 additions and 3 deletions
|
@ -79,7 +79,7 @@ def run_async(func):
|
|||
return async_func
|
||||
|
||||
|
||||
class Dispatcher:
|
||||
class Dispatcher(object):
|
||||
"""
|
||||
This class dispatches all kinds of updates to its registered handlers.
|
||||
A handler is a function that usually takes the following parameters
|
||||
|
|
|
@ -37,7 +37,7 @@ from telegram.utils.webhookhandler import (WebhookServer, WebhookHandler)
|
|||
logging.getLogger(__name__).addHandler(NullHandler())
|
||||
|
||||
|
||||
class Updater:
|
||||
class Updater(object):
|
||||
"""
|
||||
This class, which employs the Dispatcher class, provides a frontend to
|
||||
telegram.Bot to the programmer, so they can focus on coding the bot. Its
|
||||
|
|
|
@ -632,7 +632,7 @@ class UpdaterTest(BaseTest, unittest.TestCase):
|
|||
self.assertRaises(ValueError, Updater)
|
||||
|
||||
|
||||
class MockBot:
|
||||
class MockBot(object):
|
||||
|
||||
def __init__(self, text, messages=1, raise_error=False,
|
||||
bootstrap_retries=None, bootstrap_err=TelegramError('test')):
|
||||
|
|
Loading…
Reference in a new issue