upgraded wakatime package
This commit is contained in:
parent
30f344d489
commit
3d17c2dee7
2 changed files with 2 additions and 3 deletions
|
@ -111,8 +111,7 @@ def get_api_key(configFile):
|
||||||
|
|
||||||
def get_user_agent(plugin):
|
def get_user_agent(plugin):
|
||||||
ver = sys.version_info
|
ver = sys.version_info
|
||||||
python_version = '%d.%d.%d.%s.%d' % (ver.major, ver.minor, ver.micro,
|
python_version = '%d.%d.%d.%s.%d' % (ver[0], ver[1], ver[2], ver[3], ver[4])
|
||||||
ver.releaselevel, ver.serial)
|
|
||||||
user_agent = 'wakatime/%s (%s) Python%s' % (__version__,
|
user_agent = 'wakatime/%s (%s) Python%s' % (__version__,
|
||||||
platform.platform(), python_version)
|
platform.platform(), python_version)
|
||||||
if plugin:
|
if plugin:
|
||||||
|
|
|
@ -63,7 +63,7 @@ class Git(BaseProject):
|
||||||
stdout = None
|
stdout = None
|
||||||
try:
|
try:
|
||||||
stdout, stderr = Popen([
|
stdout, stderr = Popen([
|
||||||
'git', 'branch', '--no-color', '--list'
|
'git', 'branch', '--no-color'
|
||||||
], stdout=PIPE, stderr=PIPE, cwd=self._project_base()
|
], stdout=PIPE, stderr=PIPE, cwd=self._project_base()
|
||||||
).communicate()
|
).communicate()
|
||||||
except OSError:
|
except OSError:
|
||||||
|
|
Loading…
Reference in a new issue