Skip to content

Commit

Permalink
Doh! Styling!
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed Aug 10, 2015
1 parent b18fc64 commit b3e8edf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pytest_benchmark/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def check_output(*popenargs, **kwargs):
raise subprocess.CalledProcessError(retcode, cmd)
return output


class SecondsDecimal(Decimal):
def __float__(self):
return float(super(SecondsDecimal, self).__str__())
Expand Down Expand Up @@ -62,7 +63,7 @@ def get_commit_info():
commit = 'unversioned'
if os.path.exists('.git'):
desc = check_output('git describe --dirty --always --long --abbrev=40'.split(),
universal_newlines=True).strip()
universal_newlines=True).strip()
desc = desc.split('-')
if desc[-1].strip() == 'dirty':
dirty = True
Expand Down

0 comments on commit b3e8edf

Please sign in to comment.