Skip to content

Commit

Permalink
[lit] Format JSONMetricValue strings better.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226672 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
EricWF committed Jan 21, 2015
1 parent bdcc4ec commit b727b13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/lit/lit/Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def __init__(self, value):
self.value = value

def format(self):
return str(self.value)
e = JSONEncoder(indent=2, sort_keys=True)
return e.encode(self.value)

def todata(self):
return self.value
Expand Down

0 comments on commit b727b13

Please sign in to comment.