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