mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-21 22:56:38 +01:00
__main__.py: assist with creating issues on github
usage: python -m telegram and copy/paste the output
This commit is contained in:
parent
6afee6e0bd
commit
b76337de87
1 changed files with 18 additions and 0 deletions
18
telegram/__main__.py
Normal file
18
telegram/__main__.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
import sys
|
||||
|
||||
import urllib3
|
||||
import certifi
|
||||
import future
|
||||
|
||||
from . import __version__ as telegram_ver
|
||||
|
||||
|
||||
def print_ver_info():
|
||||
print('python-telegram-bot {0}'.format(telegram_ver))
|
||||
print('urllib3 {0}'.format(urllib3.__version__))
|
||||
print('certifi {0}'.format(certifi.__version__))
|
||||
print('future {0}'.format(future.__version__))
|
||||
print('Python {0}'.format(sys.version.replace('\n', ' ')))
|
||||
|
||||
# main
|
||||
print_ver_info()
|
Loading…
Reference in a new issue