mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
fix remove spaces from line
This commit is contained in:
parent
418b2c807e
commit
c7919ee816
1 changed files with 1 additions and 0 deletions
|
@ -49,6 +49,7 @@ def it_self_update():
|
||||||
_m.__all__))
|
_m.__all__))
|
||||||
version_data = URL(ver_link).reading()
|
version_data = URL(ver_link).reading()
|
||||||
for line in version_data.splitlines():
|
for line in version_data.splitlines():
|
||||||
|
line = line.strip()
|
||||||
if line.startswith('__version_info__'):
|
if line.startswith('__version_info__'):
|
||||||
_m.__new_version__ = '.'.join(re.findall(r'\d+', line))
|
_m.__new_version__ = '.'.join(re.findall(r'\d+', line))
|
||||||
if __new_version__ > _m.__version__:
|
if __new_version__ > _m.__version__:
|
||||||
|
|
Loading…
Add table
Reference in a new issue