added missing sys.version_info line
This commit is contained in:
parent
f403c7513e
commit
459e822dda
1 changed files with 3 additions and 2 deletions
|
@ -103,8 +103,9 @@ def get_api_key(configFile):
|
||||||
|
|
||||||
|
|
||||||
def get_user_agent(plugin):
|
def get_user_agent(plugin):
|
||||||
python_version = '%d.%d.%d.%s.%d' % (v.major, v.minor, v.micro,
|
ver = sys.version_info
|
||||||
v.releaselevel, v.serial)
|
python_version = '%d.%d.%d.%s.%d' % (ver.major, ver.minor, ver.micro,
|
||||||
|
ver.releaselevel, ver.serial)
|
||||||
user_agent = 'wakatime/%s (%s) Python%s' % (__version__,
|
user_agent = 'wakatime/%s (%s) Python%s' % (__version__,
|
||||||
python_version, platform.platform())
|
python_version, platform.platform())
|
||||||
if plugin:
|
if plugin:
|
||||||
|
|
Loading…
Reference in a new issue