forked from OSchip/llvm-project
[lit] Format JSONMetricValue strings better.
llvm-svn: 226672
This commit is contained in:
parent
3c898c2119
commit
dea770aeb3
|
@ -91,7 +91,8 @@ class JSONMetricValue(MetricValue):
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue