From 6095d4006152c956759c24af5466f47b1a0ab1d3 Mon Sep 17 00:00:00 2001 From: Debrian Figueroa Date: Fri, 28 Jun 2019 18:47:18 +0000 Subject: [PATCH] Make sure PresubmitResult can be converted to a json. R=martiniss@google.com Change-Id: Ida198bd834e39cc76d483a88a894f8e39d346976 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1681082 Reviewed-by: Robbie Iannucci Commit-Queue: Debrian Figueroa --- presubmit_support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presubmit_support.py b/presubmit_support.py index 1aa883d6a..f945d718d 100755 --- a/presubmit_support.py +++ b/presubmit_support.py @@ -306,7 +306,7 @@ class _PresubmitResult(object): def json_format(self): return { 'message': self._message, - 'items': self._items, + 'items': [str(item) for item in self._items], 'long_text': self._long_text, 'fatal': self.fatal }