upgrade external wakatime package to v2.0.8

This commit is contained in:
Alan Hamlett 2014-08-29 12:49:51 -07:00
parent 8574abe012
commit 49d9b1d7dc
3 changed files with 14 additions and 7 deletions

View file

@ -3,6 +3,12 @@ History
-------
2.0.8 (2014-08-29)
++++++++++++++++++
- supress output from svn command
2.0.7 (2014-08-27)
++++++++++++++++++

View file

@ -13,7 +13,7 @@
from __future__ import print_function
__title__ = 'wakatime'
__version__ = '2.0.7'
__version__ = '2.0.8'
__author__ = 'Alan Hamlett'
__license__ = 'BSD'
__copyright__ = 'Copyright 2014 Alan Hamlett'

View file

@ -54,12 +54,13 @@ class Subversion(BaseProject):
'/usr/local/bin/svn',
]
for location in locations:
try:
Popen([location, '--version'])
self.binary_location = location
return location
except:
pass
with open(os.devnull, 'wb') as DEVNULL:
try:
Popen([location, '--version'], stdout=DEVNULL, stderr=DEVNULL)
self.binary_location = location
return location
except:
pass
self.binary_location = 'svn'
return 'svn'