From 7886edcb7a69d917ce7af13b491c91c499ee4fe9 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Mon, 19 Nov 2018 23:13:05 -0800 Subject: [PATCH] upgrade wakatime-cli to v10.4.2 --- packages/wakatime/__about__.py | 2 +- packages/wakatime/dependencies/__init__.py | 2 +- packages/wakatime/projects/git.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/wakatime/__about__.py b/packages/wakatime/__about__.py index 85f4695..df13737 100644 --- a/packages/wakatime/__about__.py +++ b/packages/wakatime/__about__.py @@ -1,7 +1,7 @@ __title__ = 'wakatime' __description__ = 'Common interface to the WakaTime api.' __url__ = 'https://github.com/wakatime/wakatime' -__version_info__ = ('10', '4', '1') +__version_info__ = ('10', '4', '2') __version__ = '.'.join(__version_info__) __author__ = 'Alan Hamlett' __author_email__ = 'alan@wakatime.com' diff --git a/packages/wakatime/dependencies/__init__.py b/packages/wakatime/dependencies/__init__.py index b590ecb..c12dc08 100644 --- a/packages/wakatime/dependencies/__init__.py +++ b/packages/wakatime/dependencies/__init__.py @@ -131,5 +131,5 @@ class DependencyParser(object): if self.parser: plugin = self.parser(self.source_file, lexer=self.lexer) dependencies = plugin.parse() - return list(set(dependencies)) + return list(filter(bool, set(dependencies))) return [] diff --git a/packages/wakatime/projects/git.py b/packages/wakatime/projects/git.py index 4bddcf0..99ad6bf 100644 --- a/packages/wakatime/projects/git.py +++ b/packages/wakatime/projects/git.py @@ -87,10 +87,10 @@ class Git(BaseProject): disabled = self._configs.get('submodules_disabled') + if not disabled or disabled.strip().lower() == 'false': + return True if disabled.strip().lower() == 'true': return False - if disabled.strip().lower() == 'false': - return True for pattern in disabled.split("\n"): if pattern.strip():