mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
fix strip lines
This commit is contained in:
parent
0a639e1c50
commit
2a5140a067
1 changed files with 1 additions and 0 deletions
|
@ -49,6 +49,7 @@ def it_self_update():
|
|||
_m.__all__))
|
||||
version_data = URL(ver_link).reading()
|
||||
for line in version_data.splitlines():
|
||||
line = line.strip()
|
||||
if line.startswith('__version_info__'):
|
||||
_m.__new_version__ = '.'.join(re.findall(r'\d+', line))
|
||||
if __new_version__ > _m.__version__:
|
||||
|
|
Loading…
Reference in a new issue