utils: checkstyle: Add __repr__ method to CommitFile class

Add a custom representation to the CommitFile class in order to
facilitate debugging.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Laurent Pinchart 2023-06-12 16:40:35 +03:00
parent 52579639ce
commit c9b2f62edd

View file

@ -191,6 +191,9 @@ class CommitFile:
else:
self.__filename = info[1]
def __repr__(self):
return f'{self.__status} {self.__filename}'
@property
def filename(self):
return self.__filename