forked from luna/vim-rana-local
upgraded wakatime cli package to 0.1.5
This commit is contained in:
parent
9505314179
commit
f403c7513e
1 changed files with 5 additions and 2 deletions
|
@ -12,7 +12,7 @@
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
__title__ = 'wakatime'
|
__title__ = 'wakatime'
|
||||||
__version__ = '0.1.4'
|
__version__ = '0.1.5'
|
||||||
__author__ = 'Alan Hamlett'
|
__author__ = 'Alan Hamlett'
|
||||||
__license__ = 'BSD'
|
__license__ = 'BSD'
|
||||||
__copyright__ = 'Copyright 2013 Alan Hamlett'
|
__copyright__ = 'Copyright 2013 Alan Hamlett'
|
||||||
|
@ -103,7 +103,10 @@ def get_api_key(configFile):
|
||||||
|
|
||||||
|
|
||||||
def get_user_agent(plugin):
|
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:
|
if plugin:
|
||||||
user_agent = user_agent+' '+plugin
|
user_agent = user_agent+' '+plugin
|
||||||
return user_agent
|
return user_agent
|
||||||
|
|
Loading…
Reference in a new issue