fix strip lines

This commit is contained in:
Dimitris Zlatanidis 2015-02-11 00:50:16 +02:00
parent 0a639e1c50
commit 2a5140a067

View file

@ -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__: