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:
parent
52579639ce
commit
c9b2f62edd
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue