diff --git a/setup.py b/setup.py index 762288fd06f..d847fff8aad 100644 --- a/setup.py +++ b/setup.py @@ -53,8 +53,9 @@ def get_setup_kwargs(raw=False): fn = os.path.join('telegram', 'version.py') with open(fn) as fh: - code = compile(fh.read(), fn, 'exec') - exec(code) + for line in fh.readlines(): + if line.startswith('__version__'): + exec(line) with open(readme, 'r', encoding='utf-8') as fd:
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: