-
Notifications
You must be signed in to change notification settings - Fork 5.8k
move botan from utils to contrib #305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Maybe we should a backwards compatibility import to |
I'm having some trouble with this, putting the following in from telegram.ext.botan import Botan breaks importing In [1]: import telegram
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-c0c4e3ab5730> in <module>()
----> 1 import telegram
/home/rahiel/Code/telegram/python-telegram-bot/telegram/__init__.py in <module>()
42 from .error import TelegramError
43 from .inputfile import InputFile
---> 44 from .file import File
45 from .nullhandler import NullHandler
46 from .emoji import Emoji
/home/rahiel/Code/telegram/python-telegram-bot/telegram/file.py in <module>()
22
23 from telegram import TelegramObject
---> 24 from telegram.utils.request import download as _download
25
/home/rahiel/Code/telegram/python-telegram-bot/telegram/utils/__init__.py in <module>()
----> 1 from telegram.ext.botan import Botan
/home/rahiel/Code/telegram/python-telegram-bot/telegram/ext/__init__.py in <module>()
19 """Extensions over the Telegram Bot API to facilitate bot making"""
20
---> 21 from .dispatcher import Dispatcher
22 from .jobqueue import JobQueue
23 from .updater import Updater
/home/rahiel/Code/telegram/python-telegram-bot/telegram/ext/dispatcher.py in <module>()
26 from queue import Empty
27
---> 28 from telegram import (TelegramError, NullHandler)
29 from telegram.ext.handler import Handler
30 from telegram.utils.deprecate import deprecate
ImportError: cannot import name 'NullHandler' Same with relative import ( |
#306 drops use of NullHandler, let's see how it goes. |
#306 removed NullHandler by accident, we may have to reavaluete this. |
Changed PR title and scope for moving those kind of libs to either |
|
Travis is finally happy, ready for final review. |
I believe we also should include that to v4.2 and by v5 remove the warning? Thoughts? |
I agree, we can also postpone removing the backwards compatibility if we move too fast. |
Moves botan support to ext.