From f0b1021f171fbf6200141925871196536c520d7c Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Sun, 25 Aug 2013 16:35:32 -0700 Subject: [PATCH] upgraded wakatime package to v0.4.1 --- plugin/packages/wakatime/HISTORY.rst | 6 ++++++ plugin/packages/wakatime/wakatime/__init__.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/plugin/packages/wakatime/HISTORY.rst b/plugin/packages/wakatime/HISTORY.rst index f71aabe..3f18a7b 100644 --- a/plugin/packages/wakatime/HISTORY.rst +++ b/plugin/packages/wakatime/HISTORY.rst @@ -2,6 +2,12 @@ History ------- +0.4.1 (2013-08-25) +++++++++++++++++++ + +- Fix bug causing requests library to omit POST content + + 0.4.0 (2013-08-15) ++++++++++++++++++ diff --git a/plugin/packages/wakatime/wakatime/__init__.py b/plugin/packages/wakatime/wakatime/__init__.py index e5f7940..001f408 100644 --- a/plugin/packages/wakatime/wakatime/__init__.py +++ b/plugin/packages/wakatime/wakatime/__init__.py @@ -12,7 +12,7 @@ from __future__ import print_function __title__ = 'wakatime' -__version__ = '0.4.0' +__version__ = '0.4.1' __author__ = 'Alan Hamlett' __license__ = 'BSD' __copyright__ = 'Copyright 2013 Alan Hamlett' @@ -148,7 +148,7 @@ def send_action(project=None, branch=None, key=None, targetFile=None, # send action to api try: - response = requests.post(url, data=str.encode(json.dumps(data)), headers=headers) + response = requests.post(url, data=str(json.dumps(data)), headers=headers) except requests.exceptions.RequestException as exc: exception_data = { sys.exc_info()[0].__name__: str(sys.exc_info()[1]),