Skip to content

Commit a9b305e

Browse files
kiddicktsnoam
authored andcommitted
Fix class declaration according to consistency. (python-telegram-bot#235)
1 parent e179b27 commit a9b305e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

telegram/ext/dispatcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def async_func(*pargs, **kwargs):
7979
return async_func
8080

8181

82-
class Dispatcher:
82+
class Dispatcher(object):
8383
"""
8484
This class dispatches all kinds of updates to its registered handlers.
8585
A handler is a function that usually takes the following parameters

telegram/ext/updater.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
logging.getLogger(__name__).addHandler(NullHandler())
3838

3939

40-
class Updater:
40+
class Updater(object):
4141
"""
4242
This class, which employs the Dispatcher class, provides a frontend to
4343
telegram.Bot to the programmer, so they can focus on coding the bot. Its

tests/test_updater.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ def test_noTokenOrBot(self):
632632
self.assertRaises(ValueError, Updater)
633633

634634

635-
class MockBot:
635+
class MockBot(object):
636636

637637
def __init__(self, text, messages=1, raise_error=False,
638638
bootstrap_retries=None, bootstrap_err=TelegramError('test')):

0 commit comments

Comments
 (0)