mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 17:36:34 +03:00
setup: Fix regex failure to match version in case of CRLF line feeds
This could happen e.g. in case of using pip3 to install Telethon directly from the git repo.
This commit is contained in:
parent
b7a61510bf
commit
760d84514f
2
setup.py
2
setup.py
|
@ -110,7 +110,7 @@ def main():
|
||||||
long_description = f.read()
|
long_description = f.read()
|
||||||
|
|
||||||
with open('telethon/version.py', encoding='utf-8') as f:
|
with open('telethon/version.py', encoding='utf-8') as f:
|
||||||
version = re.search(r"^__version__\s+=\s+'(.*)'$",
|
version = re.search(r"^__version__\s*=\s*'(.*)'.*$",
|
||||||
f.read(), flags=re.MULTILINE).group(1)
|
f.read(), flags=re.MULTILINE).group(1)
|
||||||
setup(
|
setup(
|
||||||
name='Telethon',
|
name='Telethon',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user