mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 07:06:26 +01:00
* Add execfile function since it's missing in python 3. * Remove extra space.
This commit is contained in:
parent
dd4c0f0f1d
commit
bd3fa3bb64
1 changed files with 7 additions and 0 deletions
7
setup.py
7
setup.py
|
@ -16,6 +16,13 @@ def requirements():
|
||||||
|
|
||||||
return requirements_list
|
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:
|
with codecs.open('README.rst', 'r', 'utf-8') as fd:
|
||||||
execfile(os.path.join('telegram', 'version.py'))
|
execfile(os.path.join('telegram', 'version.py'))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue