mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 15:17:00 +01:00
add deprecation warning for Python 2.6 users
This commit is contained in:
parent
73c60ee817
commit
5e5510d42b
1 changed files with 8 additions and 0 deletions
|
@ -19,6 +19,8 @@
|
|||
|
||||
"""A library that provides a Python interface to the Telegram Bot API"""
|
||||
|
||||
from sys import version_info
|
||||
|
||||
from .base import TelegramObject
|
||||
from .user import User
|
||||
from .chat import Chat
|
||||
|
@ -142,3 +144,9 @@ __all__ = ['Audio',
|
|||
'Venue',
|
||||
'Video',
|
||||
'Voice']
|
||||
|
||||
|
||||
if version_info < (2, 7):
|
||||
from warnings import warn
|
||||
warn("python-telegram-bot will stop supporting Python 2.6 in a future release. "
|
||||
"Please upgrade your Python!")
|
||||
|
|
Loading…
Reference in a new issue