swapped python version and platform in user agent

This commit is contained in:
Alan Hamlett 2013-07-24 10:31:58 -07:00
parent 2faa812557
commit a71c4370b0

View File

@ -107,7 +107,7 @@ def get_user_agent(plugin):
python_version = '%d.%d.%d.%s.%d' % (ver.major, ver.minor, ver.micro, python_version = '%d.%d.%d.%s.%d' % (ver.major, ver.minor, ver.micro,
ver.releaselevel, ver.serial) ver.releaselevel, ver.serial)
user_agent = 'wakatime/%s (%s) Python%s' % (__version__, user_agent = 'wakatime/%s (%s) Python%s' % (__version__,
python_version, platform.platform()) platform.platform(), python_version)
if plugin: if plugin:
user_agent = user_agent+' '+plugin user_agent = user_agent+' '+plugin
return user_agent return user_agent