diff --git a/presubmit_support.py b/presubmit_support.py index e58b8bdd9..58129c1e4 100755 --- a/presubmit_support.py +++ b/presubmit_support.py @@ -89,7 +89,7 @@ class OutputApi(object): output_stream.write(self._message) output_stream.write('\n') for item in self._items: - output_stream.write(' %s\n' % item) + output_stream.write(' %s\n' % str(item)) if self._long_text: output_stream.write('\n***************\n%s\n***************\n' % self._long_text) @@ -435,6 +435,9 @@ class AffectedFile(object): """ raise NotImplementedError() # Implement if/when needed. + def __str__(self): + return self.LocalPath() + class SvnAffectedFile(AffectedFile): """Representation of a file in a change out of a Subversion checkout."""