From 4672f70c8756c72d618a39fb66f52b68355cace2 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Tue, 7 Nov 2017 18:54:17 -0800 Subject: [PATCH] upgrade wakatime-cli to v9.0.1 --- packages/wakatime/__about__.py | 2 +- packages/wakatime/main.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/wakatime/__about__.py b/packages/wakatime/__about__.py index 38df2f2..6d3220c 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__ = ('9', '0', '0') +__version_info__ = ('9', '0', '1') __version__ = '.'.join(__version_info__) __author__ = 'Alan Hamlett' __author_email__ = 'alan@wakatime.com' diff --git a/packages/wakatime/main.py b/packages/wakatime/main.py index 733b199..42df6fe 100644 --- a/packages/wakatime/main.py +++ b/packages/wakatime/main.py @@ -107,9 +107,9 @@ def send_heartbeat(project=None, branch=None, hostname=None, stats={}, key=None, # also delete any sensitive info when hiding file names sensitive = ['dependencies', 'lines', 'lineno', 'cursorpos', 'branch'] - for key in sensitive: - if key in data: - del data[key] + for sensitiveKey in sensitive: + if sensitiveKey in data: + del data[sensitiveKey] break except re.error as ex: