mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
[lit] Format JSONMetricValue strings better.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226672 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bdcc4ec129
commit
b727b13f61
@ -91,7 +91,8 @@ class JSONMetricValue(MetricValue):
|
|||||||
self.value = value
|
self.value = value
|
||||||
|
|
||||||
def format(self):
|
def format(self):
|
||||||
return str(self.value)
|
e = JSONEncoder(indent=2, sort_keys=True)
|
||||||
|
return e.encode(self.value)
|
||||||
|
|
||||||
def todata(self):
|
def todata(self):
|
||||||
return self.value
|
return self.value
|
||||||
|
Loading…
Reference in New Issue
Block a user