From c7919ee816eb3fe2a3ef8e2e824f194908d5585b Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Wed, 11 Feb 2015 10:12:33 +0200 Subject: [PATCH] fix remove spaces from line --- slpkg/slpkg_update.py | 1 + 1 file changed, 1 insertion(+) diff --git a/slpkg/slpkg_update.py b/slpkg/slpkg_update.py index f6c1eff8..e5fb73e4 100644 --- a/slpkg/slpkg_update.py +++ b/slpkg/slpkg_update.py @@ -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__: