From 039c4bf0ac5fc6476b1e636f424cec33bbe30ed9 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Tue, 23 Jul 2013 17:52:33 -0700 Subject: [PATCH] upgraded wakatime cli package to 0.1.5 --- packages/wakatime/wakatime/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/wakatime/wakatime/__init__.py b/packages/wakatime/wakatime/__init__.py index e60b9a1..5dd7111 100644 --- a/packages/wakatime/wakatime/__init__.py +++ b/packages/wakatime/wakatime/__init__.py @@ -12,7 +12,7 @@ from __future__ import print_function __title__ = 'wakatime' -__version__ = '0.1.4' +__version__ = '0.1.5' __author__ = 'Alan Hamlett' __license__ = 'BSD' __copyright__ = 'Copyright 2013 Alan Hamlett' @@ -103,7 +103,10 @@ def get_api_key(configFile): def get_user_agent(plugin): - user_agent = 'wakatime/%s (%s)' % (__version__, platform.platform()) + python_version = '%d.%d.%d.%s.%d' % (v.major, v.minor, v.micro, + v.releaselevel, v.serial) + user_agent = 'wakatime/%s (%s) Python%s' % (__version__, + python_version, platform.platform()) if plugin: user_agent = user_agent+' '+plugin return user_agent