Fix class declaration according to consistency. (#235)

This commit is contained in:
kiddick 2016-04-15 18:20:37 +04:00 committed by Noam Meltzer
parent e179b27f57
commit a9b305edd0
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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')):