From a9b305edd00a3767906187f35ccd14c8fe747535 Mon Sep 17 00:00:00 2001 From: kiddick Date: Fri, 15 Apr 2016 18:20:37 +0400 Subject: [PATCH] Fix class declaration according to consistency. (#235) --- telegram/ext/dispatcher.py | 2 +- telegram/ext/updater.py | 2 +- tests/test_updater.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/telegram/ext/dispatcher.py b/telegram/ext/dispatcher.py index c35c92f35..6b92c3284 100644 --- a/telegram/ext/dispatcher.py +++ b/telegram/ext/dispatcher.py @@ -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 diff --git a/telegram/ext/updater.py b/telegram/ext/updater.py index c9e6c3488..1cb47eea0 100644 --- a/telegram/ext/updater.py +++ b/telegram/ext/updater.py @@ -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 diff --git a/tests/test_updater.py b/tests/test_updater.py index 43ac956c2..078b9b322 100644 --- a/tests/test_updater.py +++ b/tests/test_updater.py @@ -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')):