Skip to content

Commit 0bb4be5

Browse files
authored
1 parent 21ded42 commit 0bb4be5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ def get_setup_kwargs(raw=False):
5353

5454
fn = os.path.join('telegram', 'version.py')
5555
with open(fn) as fh:
56-
code = compile(fh.read(), fn, 'exec')
57-
exec(code)
56+
for line in fh.readlines():
57+
if line.startswith('__version__'):
58+
exec(line)
5859

5960
with open(readme, 'r', encoding='utf-8') as fd:
6061

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy