load Updater class only when used

This commit is contained in:
Rahiel Kasim 2016-03-12 15:22:50 +01:00
parent 196d1fcc3d
commit 8b196ce71f

View file

@ -52,7 +52,12 @@ from .bot import Bot
from .dispatcher import Dispatcher from .dispatcher import Dispatcher
from .jobqueue import JobQueue from .jobqueue import JobQueue
from .updatequeue import UpdateQueue from .updatequeue import UpdateQueue
from .updater import Updater
def Updater(*args, **kwargs):
"""Load the updater module on invocation and return an Updater instance."""
from .updater import Updater as Up
return Up(*args, **kwargs)
__author__ = 'devs@python-telegram-bot.org' __author__ = 'devs@python-telegram-bot.org'