mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-14 19:48:57 +01:00
Add execfile function since it's missing in python 3.
This commit is contained in:
parent
dd4c0f0f1d
commit
8475c322af
1 changed files with 8 additions and 1 deletions
9
setup.py
9
setup.py
|
@ -16,6 +16,13 @@ def requirements():
|
|||
|
||||
return requirements_list
|
||||
|
||||
|
||||
def execfile(fn):
|
||||
with open(fn) as f:
|
||||
code = compile(f.read(), fn, 'exec')
|
||||
exec(code)
|
||||
|
||||
|
||||
with codecs.open('README.rst', 'r', 'utf-8') as fd:
|
||||
execfile(os.path.join('telegram', 'version.py'))
|
||||
|
||||
|
@ -47,4 +54,4 @@ with codecs.open('README.rst', 'r', 'utf-8') as fd:
|
|||
'Programming Language :: Python :: 3.3',
|
||||
'Programming Language :: Python :: 3.4',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
],)
|
||||
], )
|
||||
|
|
Loading…
Add table
Reference in a new issue